Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / May 2008

Tip: Looking for answers? Try searching our database.

For what is the JAVA_LIBRARY_PATH environment variable?

Thread view: 
Catherina Svensson - 09 May 2008 18:37 GMT
As far as I know I have to set this environment variable to the ".....\jvm.dll".
Is this correct?

For what purpose is this ENV Var?

Why do most of the java programs work altough I did NOT set this env variable ?

Cat
Arne Vajhøj - 10 May 2008 00:05 GMT
> As far as I know I have to set this environment variable to the ".....\jvm.dll".
> Is this correct?
>
> For what purpose is this ENV Var?
>
> Why do most of the java programs work altough I did NOT set this env variable ?

I believe it is where Java is looking for native libraries used
via JNI.

Java should be able to find the native libraries that comes with
Java without it.

And for your own JNI stuff I believe you should use
-Djava.library.path instead.

Arne
Lothar Kimmeringer - 12 May 2008 17:56 GMT
> As far as I know I have to set this environment variable to the ".....\jvm.dll".
> Is this correct?

There is no such thing like JAVA_LIBRARY_PATH but on Unix-systems
there is LD_LIBRARY_PATH where the system looks for shared
libraries. On Windows-systems the variable PATH is used.

As long as you don't write your own C-based wrapper-files using
system-functionalities you don't need to set these variables.

Regards, Lothar
Signature

Lothar Kimmeringer                E-Mail: spamfang@kimmeringer.de
              PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)

Always remember: The answer is forty-two, there can only be wrong
                questions!



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.