From: Kevin M. <kev...@er...> - 2001-09-18 16:57:23
|
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 This webpage confirms that I can use '-cp' to set the classpath when running my app. # java -cp /opt/ericsson/nms_cif_pas/lib/nms_cif_pas.jar -jar myapp.jar But this doesn't work. Should I be setting the classpath compiler option in my .jython file also? This feels like something silly I've missed. Until now I have been trying to avoid having to learn about the Java environment, but there seems to be no helping it. Regards, Kevin. > > 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 > _________________________________________________ Name/Title : Kevin McNamee, Software Consultant Phone : +46 13 32 1165 |