Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

How to add javaws.jar and plugin.jar to Eclipse classpath

Apple moved the javaws.jar and plugin.jar files to /System/Library/Frameworks/JavaVM.framework/Resources/Deploy.bundle/Contents/Home/lib in Java 6. Eclipse does not (currently) support traversing into bundles, so it is not possible to use the Eclipse GUI to add these libraries to the default JDK classpath. However, they can be manually added by editing the libraryInfos.xml configuration file:

...

<entry path="/System/Library/Frameworks/JavaVM.framework/Resources/Deploy.bundle/Contents/Home/lib/plugin.jar"/>
<entry path="/System/Library/Frameworks/JavaVM.framework/Resources/Deploy.bundle/Contents/Home/lib/javaws.jar"/>

Eclipse Code Profile