On Oct 4, 2005, at 5:45 PM, Suraj Acharya wrote:

On the Mac jde should be looking for Classes/classes.jar in your JVM directory (see the definition of jde-get-tools-jar in jde.el). Check that you have this file and that
system-type is 'darwin.

Thanks!

But I'm wondering why JDE works around OS X's Java compatibility mechanism; JDK directories like:

/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home

are set up to look to the rest of the world like an ordinary Sun JDK installation, and you can use:

/System/Library/Frameworks/JavaVM.framework/Home

to point to the system-set current JDK (though this would not work with JDE's jdk-registry mechanism).

There may have been a time when this compatibility layer was not in place (perhaps pre-10.2?) and the two checks in jde.el for 'system- type darwin' were needed, but now I think JDE should at least support users who have their JAVA_HOME set correctly on OS X. Ideally the code would be simplified by just removing the special-casing, but in order to support existing installations, the following patch works with either setting (e.g. ".../Versions/1.4.2" or ".../Versions/1.4.2/ Home") and also attempts to support non-OS X Darwin systems. (I did not test the latter.)


Attachment: jde-darwin-jdk-dir.patch
Description: Binary data



Reply via email to