From: SourceForge.net <no...@so...> - 2005-02-23 04:49:49
|
Bugs item #1049938, was opened at 2004-10-19 05:46 Message generated for change (Comment added) made by bzimmer You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1049938&group_id=12867 >Category: Installer Group: None Status: Open Resolution: None >Priority: 3 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: passing -Djava.library.path has no effect Initial Comment: I am using: jython 2.1 on debian sarge (NB: NOT the debian package, but the normal jython linux dist installed from the .class) with the sun jdk: uname -a says: Linux cave 2.6.8-1-686 #1 Sat Aug 28 14:11:39 EDT 2004 i686 GNU/Linux java -version says: java version "1.4.2_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03) Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode) It seems that passing -Djava.library.path=xxx does not have an effect (see interpreter session below) iwan@cave:~$ jython-2.1/jython -Djava.library.path=abc Jython 2.1 on java1.4.2_06 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> from java.lang import * >>> System.getProperty('java.library.path') '/usr/lib/j2sdk1.4-sun/jre/lib/i386/client:/usr/lib/j2sdk1.4-sun/jre/lib/i386:/usr/lib/j2sdk1.4-sun/jre/../lib/i386' >>> This is quite severe, since setting LD_LIBRARY_PATH for finding shared libraries also does not work... -Iwan Vosloo (iw...@gl...) ---------------------------------------------------------------------- >Comment By: brian zimmer (bzimmer) Date: 2005-02-22 22:49 Message: Logged In: YES user_id=37674 The -D argument is being sent to jython, not the JVM. You'll need to send the argument to the JVM like this: $ java -Djava.library.path=abc -jar jython.jar Jython 2.2a1 on java1.4.2_05 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> from java.lang import * >>> System.getProperty('java.library.path') 'abc' >>> I suggest writing a new wrapper script which allows for setting this variable. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1049938&group_id=12867 |