Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » problem about setting java.library.path property
problem about setting java.library.path property [message #296735] Mon, 02 January 2006 08:35 Go to next message
Eclipse UserFriend
Originally posted by: as.hut.at

hi,

I am trying to specify the java.library.path property in Eclipse but had
no idea how to do it. After some google work, I read some thing like " there
is no way to do this in IDE, instead has to do it with path variable in
system(windows environment)". I include my DLL path in the path variable in
system but nothing happen, the printed java.library.path still point to some
strange cache like
" D:\...\workspace\.metadata\.plugins\org.eclipse.ve.java.core \.cache\.libCache\-1927741210 ".
and the program gave me a unsatisfied linked error again.

I can specify the -Djava.library.path=..... and in this way, the program
works well. But I still would like to have a normal way to set this property
before hand rather then specify it for each program that need to be run.

Any idea of how to fix this problem? Thanks!
Re: problem about setting java.library.path property [message #296749 is a reply to message #296735] Mon, 02 January 2006 15:08 Go to previous messageGo to next message
Eclipse UserFriend
"as" <as@hut.at> schrieb
> I am trying to specify the java.library.path property in Eclipse but had
> no idea how to do it.

In the launch-configuration ("run...", "debug...") you can specifiy the
following under vm-args:
-Djava.library.path=...

Best regards,
feri
Re: problem about setting java.library.path property [message #296801 is a reply to message #296749] Tue, 03 January 2006 09:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: as.hut.at

Thanks feri,

Doing in this way, the program works well. But is it the only way to do
it? Isn't there somewhere in eclipse that I can set this property for all
the runnable classes so that I do not need to sepcify this everytime when I
want to start a class?


"Ferenc Hechler" <ferenc.hechler@web.de> wrote in message
news:dpc16v$rpe$1@utils.eclipse.org...
> "as" <as@hut.at> schrieb
>> I am trying to specify the java.library.path property in Eclipse but had
>> no idea how to do it.
>
> In the launch-configuration ("run...", "debug...") you can specifiy the
> following under vm-args:
> -Djava.library.path=...
>
> Best regards,
> feri
>
Re: problem about setting java.library.path property [message #296837 is a reply to message #296735] Tue, 03 January 2006 11:29 Go to previous messageGo to next message
Eclipse UserFriend
There's a way to specify that your plugin has a native library location
.... so that any launch from within eclipse will include that information
automatically.

If you download and import the swt SDK from http://www.eclipse.org/swt/
you'll see how they did it.

Later,
PW
Re: problem about setting java.library.path property [message #296903 is a reply to message #296837] Wed, 04 January 2006 08:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: as.hut.at

Thanks!
My SWT works well with its dlls. (Can not remember How I did it:))But does
it have to be a plugin to be able to pre-set the path? Currently I have some
my own developed dlls in different directories, it is quite cumbersome to
specify all these dirs with -Djava.library.path.

"Paul Webster" <pwebster@ca.ibm.com> wrote in message
news:dpe8q4$s01$4@utils.eclipse.org...
> There's a way to specify that your plugin has a native library location
> ... so that any launch from within eclipse will include that information
> automatically.
>
> If you download and import the swt SDK from http://www.eclipse.org/swt/
> you'll see how they did it.
>
> Later,
> PW
>
Re: problem about setting java.library.path property [message #296907 is a reply to message #296903] Wed, 04 January 2006 09:00 Go to previous messageGo to next message
Eclipse UserFriend
as wrote:
> Thanks!
> My SWT works well with its dlls. (Can not remember How I did it:))But does
> it have to be a plugin to be able to pre-set the path? Currently I have some
> my own developed dlls in different directories, it is quite cumbersome to
> specify all these dirs with -Djava.library.path.
>

No, that's the point ... not the SWT plugin, but the SWT SDK (from the
link I mentioned) which is an eclipse java project. Check out how they
did it.

I think they added their jar to the build path, and then added native
libraries to the jar. Maybe you can adapt that somehow.

Later,
PW
Re: problem about setting java.library.path property [message #296911 is a reply to message #296907] Wed, 04 January 2006 10:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: as.hut.at

OK, thanks very much. Seem it is time to do some serious reading now. :)

"Paul Webster" <pwebster@ca.ibm.com> wrote in message
news:dpgkf0$qd1$1@utils.eclipse.org...
> as wrote:
>> Thanks!
>> My SWT works well with its dlls. (Can not remember How I did it:))But
>> does it have to be a plugin to be able to pre-set the path? Currently I
>> have some my own developed dlls in different directories, it is quite
>> cumbersome to specify all these dirs with -Djava.library.path.
>>
>
> No, that's the point ... not the SWT plugin, but the SWT SDK (from the
> link I mentioned) which is an eclipse java project. Check out how they
> did it.
>
> I think they added their jar to the build path, and then added native
> libraries to the jar. Maybe you can adapt that somehow.
>
> Later,
> PW
Re: problem about setting java.library.path property [message #296927 is a reply to message #296907] Wed, 04 January 2006 17:03 Go to previous message
Eclipse UserFriend
Originally posted by: asdj.hyena.com

Just tried your approach, works just fine. this method is much better.

Thanks Paul!

"Paul Webster" <pwebster@ca.ibm.com>
??????:dpgkf0$qd1$1@utils.eclipse.org...
> as wrote:
>> Thanks!
>> My SWT works well with its dlls. (Can not remember How I did it:))But
>> does it have to be a plugin to be able to pre-set the path? Currently I
>> have some my own developed dlls in different directories, it is quite
>> cumbersome to specify all these dirs with -Djava.library.path.
>>
>
> No, that's the point ... not the SWT plugin, but the SWT SDK (from the
> link I mentioned) which is an eclipse java project. Check out how they
> did it.
>
> I think they added their jar to the build path, and then added native
> libraries to the jar. Maybe you can adapt that somehow.
>
> Later,
> PW
Previous Topic:E-P-I-C 0.3.0 appears to create zombie threads, 0.3.12 does not
Next Topic:Help content doesn't work
Goto Forum:
  


Current Time: Fri Sep 12 10:58:42 EDT 2025

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

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

Back to the top