problem about setting java.library.path property [message #296735] |
Mon, 02 January 2006 08:35  |
Eclipse User |
|
|
|
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 #296927 is a reply to message #296907] |
Wed, 04 January 2006 17:03  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05231 seconds