Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Appending java.library.path at jvm start-up system wide

815781Nov 17 2010 — edited Nov 18 2010
Hello,

I'd like to append my java.library.path for all users on when the jvm is started. IBM java has a SystemDefault.properties [1] file which allows you to overwrite (in my case append to) the default system properties at jvm startup both for the user level (by placing in a home directory) and system level (by placing in the java base directories). However, sun/oracle java does not have such a feature, and the system properties are created at load time.

I cannot set the LD_LIBRARY_PATH environmental variable system wide, nor use the -Djava.library.path=... command line option (for different reasons).

Is there a way to use a .properties file to set java.library.path system wide?

For more information, see [2].

Thank you!

[1] http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=%2Frzaha%2Fsdpropf.htm
[2] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=382686
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 16 2010
Added on Nov 17 2010
2 comments
1,134 views