How to configure the -Djava.library.path on Mac OSX (Eclipse 3.0 RC2) [message #254225] |
Mon, 21 June 2004 14:15 |
Eclipse User |
|
|
|
Originally posted by: martinjconnolly.msn.com
I cannot figure how to get a java application to launch - I get the
"unsatisfiedlinkerror" message saying it can't find the carbon swt-pi
library. I have copied the jnilib files to /Library/java/extensions, and
also added
" ;/Users/shared/eclipse/plugins/org.eclipse.swt.carbon_3.0.0/ os/macosx/ppc/x
xxx.jnilib" (ie for both jnilibs) to the "-Djava.library.path" argument -
and it still won't launch. What's the simple way of doing this (I assume
there is a simple answer!!)
Thanks
Martin Connolly
|
|
|
Re: How to configure the -Djava.library.path on Mac OSX (Eclipse 3.0 RC2) [message #254323 is a reply to message #254225] |
Mon, 21 June 2004 16:59 |
Eclipse User |
|
|
|
Originally posted by: bdkucer.sandia.gov
I don't use OSX, but this is what I did under windows.
1) Download the SWT binary and source package that matches your version of
Eclipse. I recommend the ibiblio.org mirror.
2) Extract the zip (or whatever) file to a folder. For simplicity, don't
put it in one with spaces in the path.
3) Right-click on your project, Java Build Path, Libraries, Add External
JARs, and add swt.jar.
4) In your Run configuration, add "-Djava.library.path=C:\SWT" to the VM
Arguments box. Replace C:\SWT with the path you extracted the zip file to.
Martin Connolly wrote:
> I cannot figure how to get a java application to launch - I get the
> "unsatisfiedlinkerror" message saying it can't find the carbon swt-pi
> library. I have copied the jnilib files to /Library/java/extensions, and
> also added
> " ;/Users/shared/eclipse/plugins/org.eclipse.swt.carbon_3.0.0/ os/macosx/ppc/x
> xxx.jnilib" (ie for both jnilibs) to the "-Djava.library.path" argument -
> and it still won't launch. What's the simple way of doing this (I assume
> there is a simple answer!!)
> Thanks
> Martin Connolly
|
|
|
Re: How to configure the -Djava.library.path on Mac OSX (Eclipse 3.0 RC2) [message #254422 is a reply to message #254225] |
Mon, 21 June 2004 23:19 |
Eclipse User |
|
|
|
Originally posted by: pascal.ibm.canada
Make sure that you specified -Djava.library.path as a VM argument.
Moreover if you have several entries on the library path, check that you
use the appropriate separator for your platform (I think it is ":" on
macos).
PaScaL
Martin Connolly wrote:
> I cannot figure how to get a java application to launch - I get the
> "unsatisfiedlinkerror" message saying it can't find the carbon swt-pi
> library. I have copied the jnilib files to /Library/java/extensions, and
> also added
> " ;/Users/shared/eclipse/plugins/org.eclipse.swt.carbon_3.0.0/ os/macosx/ppc/x
> xxx.jnilib" (ie for both jnilibs) to the "-Djava.library.path" argument -
> and it still won't launch. What's the simple way of doing this (I assume
> there is a simple answer!!)
> Thanks
> Martin Connolly
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.04413 seconds