From: Samuele P. <pe...@in...> - 2001-09-18 15:53:59
|
Hi. That's a java problem/design decision. Java -jar ignores the classpath and limits loading to the jar and the extension dirs. http://java.sun.com/j2se/1.3/docs/tooldocs/linux/java.html#options On the other hand you can use as a surrugate the Class-Path attribute in the manifest file: http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#Main Attributes regards, Samuele Pedroni. > From: Kevin McNamee <kev...@er...> > X-X-Sender: <qk...@lm...> > To: Jyt...@li... > MIME-version: 1.0 > Subject: [Jython-users] CLASSPATH problem > X-BeenThere: jyt...@li... > X-Mailman-Version: 2.0.5 > List-Help: <mailto:jyt...@li...?subject=help> > List-Post: <mailto:jyt...@li...> > List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/jython-users>, <mailto:jyt...@li...?subject=subscribe> > List-Id: <jython-users.lists.sourceforge.net> > List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/jython-users>, <mailto:jyt...@li...?subject=unsubscribe> > List-Archive: <https://lists.sourceforge.net/archives//jython-users/> > X-Original-Date: Tue, 18 Sep 2001 11:30:37 +0200 (MEST) > Date: Tue, 18 Sep 2001 11:30:37 +0200 (MEST) > X-Keywords: > > Hi, > > probably not a novel question, but how do I get my compiled script to look > in CLASSPATH. > > I do the following: > > # jythonc -a -j gui.jar Gui.py > > Then I try > > # setenv CLASSPATH /opt/ericsson/nms_cif_ist/lib/nms_cif_ist.jar > # java -jar gui.jar > > or > > # java -cp /opt/ericsson/nms_cif_ist/lib/nms_cif_ist.jar -jar gui.jar > > but neither work. > It works fine when I use the interpreter: > > # setenv CLASSPATH /opt/ericsson/nms_cif_ist/lib/nms_cif_ist.jar > # jython Gui.py > > What I am doing wrong? > > > Any help appreciated, > Kevin > > _________________________________________________ > Name/Title : Kevin McNamee, Software Consultant > Phone : +46 13 32 1165 > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |