Possible to use mac os x JDK 1.6 port ( SoyLatte ) to launch eclipse?
Carfield Yim
carfield at carfield.com.hk
Wed Dec 5 11:35:44 PST 2007
I updated to eclipse 3.3.1
and follow existly procedure ( well, with differe path... ) but still
getting the exception:
java.lang.UnsatisfiedLinkError: no swt-carbon-3347 or swt-carbon in
swt.library.path, java.library.path or the jar file
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:219)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:151)
at org.eclipse.swt.internal.C.<clinit>(C.java:21)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:945)
at org.eclipse.swt.widgets.Display.create(Display.java:939)
at org.eclipse.swt.graphics.Device.<init>(Device.java:119)
at org.eclipse.swt.widgets.Display.<init>(Display.java:749)
at org.eclipse.swt.widgets.Display.<init>(Display.java:740)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:498)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(
IDEApplication.java:133)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(
IDEApplication.java:86)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(
EclipseAppHandle.java:169)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java
:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java
:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
Anyone have idea to resolve that?
On 12/4/07, Leif Nelson <lnelson at llnl.gov> wrote:
>
> For eclipse 3.3.1, the swt .jnilib's seem to be hiding in the
> plugins/org.eclipse.swt.carbon.macosx_3.3.2.v3347a.jar file. I did the
> following to startup eclipse 3.3.1 on my mac:
>
> /apps/eclipse-3.3.1 $ cd plugins/
> /apps/eclipse-3.3.1/plugins $ mkdir swt-carbon-macosx
> /apps/eclipse-3.3.1/plugins $ cd swt-carbon-macosx/
> /apps/eclipse-3.3.1/plugins/swt-carbon-macosx $ jar -xf
> ../org.eclipse.swt.carbon.macosx_3.3.2.v3347a.jar
> /apps/eclipse-3.3.1/plugins/swt-carbon-macosx $ cd ../..
> /apps/eclipse-3.3.1 $ /opt/soylatte16-i386-r3/bin/java -Xmx1024m
> -XX:MaxPermSize=128m
> -
> Djava.library.path=plugins/swt-carbon-macosx:plugins/org.eclipse.swt.carbon.macosx_3.3.2.v3347a.jar:plugins/org.eclipse.equinox.launcher.carbon.macosx_1.0.2.R331_v20071019
> -cp plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
> org.eclipse.equinox.launcher.Main -os macosx -ws carbon -arch x86 -clean
> -debug --launcher.library
>
> plugins/org.eclipse.equinox.launcher.carbon.macosx_1.0.2.R331_v20071019/eclipse_1021.so
> -startup plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
> -vm /opt/soylatte16-i386-r3/bin/java -keyring ./.eclipse_keyring
> -consoleLog -showlocation
>
> Eclipse then popped right up!
>
> --Leif
>
> Landon Fuller wrote:
> >
> > On Dec 3, 2007, at 10:51, Carfield Yim wrote:
> >
> >> Look like it is not possible to tell eclipse use SoyLatte using -vm
> >> parameter , so I try to start eclipse in command line using following
> >> command:
> >>
> >> ./soylatte16-i386-r2/bin/java
> >> -
> Djava.library.path=plugins/org.eclipse.swt.carbon.macosx_3.3.0.v3346/:plugins/org.eclipse.equinox.launcher.carbon.macosx_1.0.0.v20070606
> >> -cp eclipse/plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar
> >> org.eclipse.equinox.launcher.Main -os macosx -ws carbon -arch x86
> >> -clean -debug --launcher.library
> >>
> plugins/org.eclipse.equinox.launcher.carbon.macosx_1.0.0.v20070606/eclipse_1017a.so
> >> -startup plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar
> >> -vm ./soylatte16-i386-r2/bin/java -keyring ./.eclipse_keyring
> >> -consoleLog -showlocation
> >>
> >> However, may be I still miss some library at -Djava.library.path, I
> >> still get following exception, will anyone have idea of fixing this?:
> >
> > My two minute solution (just now) was to drop the SWT JNI libraries in
> > the java.library.path manually. Eclipse seems to be running fine.
> > I couldn't find the original SWT binaries in the eclipse installation
> > tree -- does eclipse extract them from a jar?
> >
> > Also, SoyLatte R2 only supports shared libraries with the standard
> > .dylib extension. R3 added a fall-back to Apple's .jnilib.
> >
> > -landonf
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/porters-dev/attachments/20071206/957f7d53/attachment.html
More information about the porters-dev
mailing list