openjdk and eclipse

Michael Franz mvfranz at gmail.com
Mon Feb 23 16:46:57 PST 2009


Peter,

I have not tried eclipse on the most recent repo.  I do notice that your
start script is missing a bunch of stuff that I put in.  This is what I use,
you should just have to change the two variables to get it to work.  I see
you are using the cocoa version on x86_64, I have only run using carbon on
x86.

export JAVA_HOME=/usr/local/java-1.7.0
export ECLIPSE_HOME=/Developer/Applications/Eclipse-3.4

${JAVA_HOME}/bin/java -server -Xms128m -Xmx1536m -XX:MaxPermSize=256m
-Dosgi.requiredJavaVersion=1.5 -Dorg.eclipse.swt.internal.carbon.smallFonts
-Djava.library.path=.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:${ECLIPSE_HOME}/configuration/org.eclipse.osgi/bundles/130/1/.cp:${ECLIPSE_HOME}/configuration/org.eclipse.osgi/bundles/23/1/.cp/os/macosx
-cp
${ECLIPSE_HOME}/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar
org.eclipse.equinox.launcher.Main -os macosx -ws carbon -arch x86
-showsplash -launcher ${ECLIPSE_HOME}/Eclipse.app/Contents/MacOS/eclipse
-name Eclipse --launcher.library
${ECLIPSE_HOME}/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher.carbon.macosx_1.0.100.v20080509-1800/eclipse_1114.so
-startup
${ECLIPSE_HOME}/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar
-launcher ${ECLIPSE_HOME}/Eclipse.app/Contents/MacOS/eclipse -consoleLog
-showlocation -vm ${JAVA_HOME}

Michael
On Mon, Feb 23, 2009 at 9:48 AM, peter barnabus <peterbarnabus at gmail.com>wrote:

> Hi,
>
> I had some success running eclipse with soylatte, but it does not work at
> all with the latest openjdk. Has anyone else had any success?
>
> /usr/local/java-1.7.0/bin/java -server -Xms128m -Xmx1536m
> -XX:MaxPermSize=256m -Dosgi.requiredJavaVersion=1.5
> -Dorg.eclipse.swt.internal.carbon.smallFonts -Djava.library.path=jnilib -cp
> plugins/org.eclipse.equinox.launcher_1.0.200.v20090128-1500.jar
> org.eclipse.equinox.launcher.Main -os macosx -ws cocoa -arch x86_64
> -showsplash -launcher Eclipse.app/Contents/MacOS/eclipse -name Eclipse
> --launcher.library
> plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.0.0.v20081125-1800/eclipse_1201.so
> -startup plugins/org.eclipse.equinox.launcher_1.0.200.v20090128-1500.jar
> -launcher Eclipse.app/Contents/MacOS/eclipse -keyring
> /Users/peter/.eclipse_keyring -consoleLog -showlocation -vm
> /usr/local/java-1.7.0
>
> java.lang.NullPointerException
>         at
> org.eclipse.core.runtime.adaptor.LocationManager.getEclipseHomeLocation(LocationManager.java:161)
>         at
> org.eclipse.core.runtime.adaptor.LocationManager.initializeLocations(LocationManager.java:140)
>         at
> org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:275)
>         at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:623)
>         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:556)
>         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:511)
>         at org.eclipse.equinox.launcher.Main.run(Main.java:1270)
>         at org.eclipse.equinox.launcher.Main.main(Main.java:1246)
>
> regards,
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20090223/04af14a5/attachment.html 


More information about the bsd-port-dev mailing list