<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: java.library.path in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/java-library-path/qaa-p/1571682#M688124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter, my EJB deployed onto the SAP J2EE Engine refers certain JARs of IBM application, which uses the JNI technology. I found the path is not in java.library.path property, and that's why I want to add the path into it.&lt;/P&gt;&lt;P&gt;I'll try the config tool tomorrow.&lt;/P&gt;&lt;P&gt;Anyway, thank you:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Oct 2006 12:51:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-12T12:51:50Z</dc:date>
    <item>
      <title>java.library.path</title>
      <link>https://community.sap.com/t5/technology-q-a/java-library-path/qaq-p/1571676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to change the java.library.path property of VM permanently, thus I used the java command with -D option just like below, with no new-line entered:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;java -Djava.library.path=/usr/java14_64/jre/bin:/usr/java14_64/jre/bin/classic:/usr/java14_64/jre/bin:/usr/sap/XID/SYS/exe/run:/usr/sap/XID/SYS/exe/runU:/db2/db2xid/sqllib/lib:/usr/lib:/opt/IBM/cicstg/bin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but after doing this, the following infomations appears in console, just like I've just enter "java":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usage: java [-options] class [args...]&lt;/P&gt;&lt;P&gt;           (to execute a class)&lt;/P&gt;&lt;P&gt;   or  java [-jar] [-options] jarfile [args...]&lt;/P&gt;&lt;P&gt;           (to execute a jar file)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where options include:&lt;/P&gt;&lt;P&gt;    -cp -classpath &amp;lt;directories and zip/jar files separated by &lt;span class="lia-unicode-emoji" title=":grinning_squinting_face:"&gt;😆&lt;/span&gt;&lt;/P&gt;&lt;P&gt;              set search path for application classes and resources&lt;/P&gt;&lt;P&gt;    -D&amp;lt;name&amp;gt;=&amp;lt;value&amp;gt;&lt;/P&gt;&lt;P&gt;              set a system property&lt;/P&gt;&lt;P&gt;    -verbose[:class|gc|jni]&lt;/P&gt;&lt;P&gt;              enable verbose output&lt;/P&gt;&lt;P&gt;    -version  print product version&lt;/P&gt;&lt;P&gt;    -showversion  print product version and continue&lt;/P&gt;&lt;P&gt;    -? -help  print this help message&lt;/P&gt;&lt;P&gt;    -X        print help on non-standard options&lt;/P&gt;&lt;P&gt;    -assert   print help on assert options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the last path - /opt/IBM/cicstg/bin still hasn't been added to java.library.path property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 07:06:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-library-path/qaq-p/1571676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T07:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: java.library.path</title>
      <link>https://community.sap.com/t5/technology-q-a/java-library-path/qaa-p/1571677#M688119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi YiNing,&lt;/P&gt;&lt;P&gt;   Other way for setting java path:&lt;/P&gt;&lt;P&gt;   Right click on MyComputer-&amp;gt;Advanced-&amp;gt;Environment variable&lt;/P&gt;&lt;P&gt;JAVA_HOME=c:\j2sdk1.4.2_11&lt;/P&gt;&lt;P&gt;PATH=%JAVA_HOME%\bin;&amp;lt;remaining path&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Suresh KB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 07:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-library-path/qaa-p/1571677#M688119</guid>
      <dc:creator>sureshkb</dc:creator>
      <dc:date>2006-10-12T07:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: java.library.path</title>
      <link>https://community.sap.com/t5/technology-q-a/java-library-path/qaa-p/1571678#M688120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suresh, I tried your method in windows but it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I write a java code to get the java.library.path property.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
import java.util.Properties;
class  GetProperty
{
	public static void main(String[] args) 
	{
		Properties props = System.getProperties(); 
		System.out.println(props.getProperty("java.library.path"));
	}
}
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides, our system is AIX UNIX, and I've add the path to LD_LIBRARY_PATH, but still, I can't seen it in java.library.path:(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 08:50:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-library-path/qaa-p/1571678#M688120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T08:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: java.library.path</title>
      <link>https://community.sap.com/t5/technology-q-a/java-library-path/qaa-p/1571679#M688121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you want to set the java.library.path variable for stand-alone applications or for the Web Application Server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the Web Application Server you can set these information in the config tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 10:09:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-library-path/qaa-p/1571679#M688121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T10:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: java.library.path</title>
      <link>https://community.sap.com/t5/technology-q-a/java-library-path/qaa-p/1571680#M688122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sebastian, I want set it for WAS, can you tell me the detail of the setting in config tool?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 11:40:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-library-path/qaa-p/1571680#M688122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T11:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: java.library.path</title>
      <link>https://community.sap.com/t5/technology-q-a/java-library-path/qaa-p/1571681#M688123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;how to change / update the java options is documented in SAP note 710146, which basically says :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to something like &lt;/P&gt;&lt;P&gt; C:\usr\sap\&amp;lt;id&amp;gt;\&amp;lt;instance&amp;gt;\j2ee\configtool,                                    &lt;/P&gt;&lt;P&gt; start the configtool.bat (.sh on unix), select                             &lt;/P&gt;&lt;P&gt; cluster_data/instance_ID.../server_ID... and make the change in the "Java parameters" field. Do this for all servers and dispatchers, click the save button and restart the whole cluster                                    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However modifying the library path of the whole java and the server, may lead to some quite strange results, and I assume you want to make your dll available only for some application, right ? So maybe a better approach is to package your resources together with your application and deploy, although I am not sure how or if that could be done with native libraries.&lt;/P&gt;&lt;P&gt;Probably search in the documentation or opening another message with appropriate subject may help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 12:24:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-library-path/qaa-p/1571681#M688123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T12:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: java.library.path</title>
      <link>https://community.sap.com/t5/technology-q-a/java-library-path/qaa-p/1571682#M688124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter, my EJB deployed onto the SAP J2EE Engine refers certain JARs of IBM application, which uses the JNI technology. I found the path is not in java.library.path property, and that's why I want to add the path into it.&lt;/P&gt;&lt;P&gt;I'll try the config tool tomorrow.&lt;/P&gt;&lt;P&gt;Anyway, thank you:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 12:51:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-library-path/qaa-p/1571682#M688124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T12:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: java.library.path</title>
      <link>https://community.sap.com/t5/technology-q-a/java-library-path/qaa-p/1571683#M688125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So there are some native libraries used by the IBM guys, but they cannot be loaded ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have any JNI experience, but maybe if the native resources used by the IBM code is in the classpath, that will do the trick... and simply adding this to the application (at the root level, without package) is something that could be tried...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or perhaps deploying the IBM jars and their resources as a library on the server and using them from your application...&lt;/P&gt;&lt;P&gt;Here is a thread that discusses server libraries and somewhat similar problem, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="186004"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 13:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-library-path/qaa-p/1571683#M688125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T13:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: java.library.path</title>
      <link>https://community.sap.com/t5/technology-q-a/java-library-path/qaa-p/1571684#M688126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter, the library files is generated with the installation of a IBM product.&lt;/P&gt;&lt;P&gt;Unfortunely, we forgot to use ther user &amp;lt;sid&amp;gt;adm to install the product, thus, some system environment is not set properly, and java.library.path is one of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've theck the configtool, the setting in it is a command line, and -Djava.library.path can be added to there, but as you said, it's dangerous, so I haven't tried it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, thank you:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My last question is, still as the first one, &amp;lt;b&amp;gt;why can't I use java -D option in console? Even in my windows console?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2006 01:45:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-library-path/qaa-p/1571684#M688126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-13T01:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: java.library.path</title>
      <link>https://community.sap.com/t5/technology-q-a/java-library-path/qaa-p/1571685#M688127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;the java -D options is NOT to setup something permanently as it seems you are expecting, but to set something for the current invocation. The message you get is that you need to provide a class with main method together with the launch options. I.e. if you invoke&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;java -Djava.library.path=myPath GetProperty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where GetProperty is your class you should see the correct value, but if you launch it the next time :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;java GetProperty&lt;/P&gt;&lt;P&gt;you should see again the old value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that explains it a bit.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2006 07:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-library-path/qaa-p/1571685#M688127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-13T07:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: java.library.path</title>
      <link>https://community.sap.com/t5/technology-q-a/java-library-path/qaa-p/1571686#M688128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter, that's what I want, thank you:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2006 13:49:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/java-library-path/qaa-p/1571686#M688128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-13T13:49:48Z</dc:date>
    </item>
  </channel>
</rss>

