Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to configure the -Djava.library.path on Mac OSX (Eclipse 3.0 RC2)
How to configure the -Djava.library.path on Mac OSX (Eclipse 3.0 RC2) [message #254225] Mon, 21 June 2004 14:15 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
>
>
Re: How to configure the -Djava.library.path on Mac OSX (Eclipse 3.0 RC2) [message #254802 is a reply to message #254225] Tue, 22 June 2004 20:24 Go to previous message
Christophe Cornu is currently offline Christophe CornuFriend
Messages: 304
Registered: July 2009
Senior Member
> " ;/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 -
Try
/Users/shared/eclipse/plugins/org.eclipse.swt.carbon_3.0.0/o s/macosx/ppc/
to the -Djava.library.path. This property takes a path - the library name
is not included.

Chris
Previous Topic:Debuggin a Plug-in -- Newbie Question
Next Topic:Eclipse Plugins for Forth?
Goto Forum:
  


Current Time: Mon Jul 22 00:21:31 GMT 2024

Powered by FUDForum. Page generated in 0.04815 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top