From: SourceForge.net <no...@so...> - 2004-06-01 17:43:58
|
Feature Requests item #964426, was opened at 2004-06-01 10:43 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438938&aid=964426&group_id=44253 Category: Compiler integration Group: None Status: Open Priority: 5 Submitted By: Neal Horowitz (nrhorowitz) Assigned to: Nobody/Anonymous (nobody) Summary: Improving Windows tools.jar locator Initial Comment: Although the current logic is good and works in almost all cases, it would be nice to improve it. There are several new considerations. - We need to check for jdk<version> as well as j2sdk<version>, since 1.5 will install there by default. - The default location for jdk 1.4.2_04 installations is %ProgramFiles%\Java\j2sdk1.4.2_04 rather than C:\j2sdk1.4.2_04 (I'm pretty sure this holds for all the recent versions of the jdk), so for users who accept the default installation, DrJava will fail to find their tools.jar. A good location to check, given the default install directories, would be <Java Home>\..\j2sdk<version>. - The current logic only looks in C:\j2sdk<version>, and will not check any other drives. I'm not sure if there's a way to check for other fixed disks, but it makes sense to check some more locations, including %homedrive% and the drives from in %windir% and %programfiles%. I wrote these in order of importance, as I see it. I think supporting jdk1.5 in this way is important (and easy). We also shouldn't have trouble just because of more recent installations of the jdk, and this is also a pretty easy change. The last one is pretty unimportant, as it only affects people who have a non-default windows installation (or java installation), and people who install their programs in a non-default location are probably people who can handle locating their own tools.jar. Still, it'd be nice to make the ToolsJarClassLoader a little more robust, so I figured I'd include it here. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438938&aid=964426&group_id=44253 |