From: Johannes <gu...@gm...> - 2006-03-20 07:51:42
|
Dear other Jython-Users, tried to figure out how to start my jar-file, did not succeed. java -classpath "c:/jython-2.1/jython.jar;." MyJavaclass works fine. But with a jar I had no sucess at all! Any ideas? I tried: writing it in the Manifest (relative and absolute), set Classpath.... Best, Johannes |
From: Johannes <gu...@gm...> - 2006-03-21 08:51:52
|
Thank you for answering that fast and sorry for not making it clear enough! >its not fully clear to me what you want to achieve. I want to distribute my java-files that use jython inside a stand alone jar-file. As normal class-files everything works fine, I start my application with java -classpath "c:/jython-2.1/jython.jar;." MyJavaclass (MyJavaclass is called swingframe.AAMT see in the Manifest) >All I know is that you cannot use both java -jar and java -classpath. >So if you use java -jar, the classpath are the contents of your jar file, plus additional classpath items in the jar's >manifest. Yes, I know, but does not seem to work (I know that in the Manifest I have to use relative paths instead of c:/jython-2.1...) After I pack my java files inside a jar-file and fill out the Manifest with /Manifest-Version: 1.0 Main-Class: swingframe.AAMT Class-Path: ../jython.jar;/jython.jar;jython.jar;./ (I tried these different paths to jython, not to miss something there and also with ..\jython.jar etc.). Best, Johannes Manifest-Version: 1.0 Main-Class: swingframe.AAMT |
From: Jeff E. <jem...@fr...> - 2006-03-21 19:20:54
|
It appears your Class-Path syntax is incorrect. According to the Jar File Spec, you should separate the path elements by spaces instead of semicolons. Class-Path : The value of this attribute specifies the relative URLs of the extensions or libraries that this application or extension needs. URLs are separated by one or more spaces. Johannes wrote: > Thank you for answering that fast and sorry for not making it clear enough! > >> its not fully clear to me what you want to achieve. > > > I want to distribute my java-files that use jython inside a stand alone > jar-file. > As normal class-files everything works fine, I start my application with > java -classpath "c:/jython-2.1/jython.jar;." MyJavaclass > (MyJavaclass is called swingframe.AAMT see in the Manifest) > > >> All I know is that you cannot use both java -jar and java -classpath. >> So if you use java -jar, the classpath are the contents of your jar >> file, plus additional classpath items in the jar's >manifest. > > Yes, I know, but does not seem to work (I know that in the Manifest I > have to use relative paths instead of c:/jython-2.1...) > > > After I pack my java files inside a jar-file and fill out the Manifest with > /Manifest-Version: 1.0 > Main-Class: swingframe.AAMT > Class-Path: ../jython.jar;/jython.jar;jython.jar;./ > > (I tried these different paths to jython, not to miss something there > and also with ..\jython.jar etc.). > > Best, > Johannes > > > > > > > > > > Manifest-Version: 1.0 > Main-Class: swingframe.AAMT > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |
From: Johannes <gu...@gm...> - 2006-03-24 21:00:14
|
Thank's alot Jeff Emanuel, yes, you are right, the Classpath was wrong. I thought I read somewhere that you have to seperate it by semicolons, but reality proves me wrong! Best, Johannes Jeff Emanuel schrieb: > It appears your Class-Path syntax is incorrect. According to the Jar File > Spec, you should separate the path elements by spaces instead of > semicolons. > > Class-Path : > > The value of this attribute specifies the relative URLs of the extensions or libraries that this application or extension needs. URLs are separated by one or more spaces. |
From: Oti <oh...@ya...> - 2006-03-20 21:20:55
|
Hi Johannes, its not fully clear to me what you want to achieve. All I know is that you cannot use both java -jar and java -classpath. So if you use java -jar, the classpath are the contents of your jar file, plus additional classpath items in the jar's manifest. Hope this helps, Oti. ----- Original Message ---- From: Johannes <gu...@gm...> To: jyt...@li... Sent: Monday, March 20, 2006 8:52:21 AM Subject: [Jython-users] -classpath "c:/jython-2.1/jython.jar Dear other Jython-Users, tried to figure out how to start my jar-file, did not succeed. java -classpath "c:/jython-2.1/jython.jar;." MyJavaclass works fine. But with a jar I had no sucess at all! Any ideas? I tried: writing it in the Manifest (relative and absolute), set Classpath.... Best, Johannes ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users |