logo       

Re: -classpath "c:/jython-2.1/jython.jar: msg#00023

lang.jython.user

Subject: Re: -classpath "c:/jython-2.1/jython.jar

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
Jython-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/jython-users


-------------------------------------------------------
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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise