How to add classpath in eclipse manifest.txt?
I study lesson 10 in PersistenceTuterial, but I fail to create a persistence.jar file with following manifest.txt,
it is exactly same as tutorial said.
here xstream-1.3.jar is put in my C:/DOC/Eclipse/xstream-1.3.jar
and I also put this classpath C:/DOC/Eclipse/xstream-1.3.jar in Project=>Property=>Libraries
But When I generate C:\eclipseRCP\persistence.jar, it prompts me :
JAR export finished with warnings. See details for additional information.
Exported with compile warnings: PersistenceTutorial/src/org/persistence/tutorial/MyUtilities.java
How to fix it??
Where should I put xstream-1.3.jar??
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi. Are you sure you have the name of the XStream Jar file exactly right? In the tutorial, it is "xstream-1.2.2.jar". This has an extra digit than "xstream-1.3.jar" in your example. Should it be "xstream-1.3.0.jar"? Hope this helps. Mark
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, Mark,
It is really a great tutorial. I try 1 by 1,
Yes, I download xstream-1.3.jar and use it in my test instead of xstream-1.2.2.jar,
I think never xstream-1.3.jar or xstream-1.2.2.jar, should be same ,right??
I double check again:
I download xstream-distribution-1.3-bin.zip, after unzip, it has xstream-1.3.jar, not xstream-1.3.0.jar;
size 402K.
By the way, If I use absolute classpath in your example's manifest.txt, how can I make it??
Regards
sunny
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear Mark:
In manifest.txt, the statement: Class-Path: xstream-1.3.jar
Where is this actual xstream-1.3.jar located??
Is it located as I put in:
xstream-1.3.jar is put in my C:/DOC/Eclipse/xstream-1.3.jar
and I also put this classpath C:/DOC/Eclipse/xstream-1.3.jar in Project=>Property=>Libraries
??
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, all:
How to add classpath in eclipse manifest.txt?
I study lesson 10 in PersistenceTuterial, but I fail to create a persistence.jar file with following manifest.txt,
it is exactly same as tutorial said.
Manifest-Version: 1.0
Main-Class: org.persistence.tutorial.MyLibrary
Class-Path: xstream-1.3.jar
here xstream-1.3.jar is put in my C:/DOC/Eclipse/xstream-1.3.jar
and I also put this classpath C:/DOC/Eclipse/xstream-1.3.jar in Project=>Property=>Libraries
But When I generate C:\eclipseRCP\persistence.jar, it prompts me :
JAR export finished with warnings. See details for additional information.
Exported with compile warnings: PersistenceTutorial/src/org/persistence/tutorial/MyUtilities.java
How to fix it??
Where should I put xstream-1.3.jar??
Thanks
Hi. Are you sure you have the name of the XStream Jar file exactly right? In the tutorial, it is "xstream-1.2.2.jar". This has an extra digit than "xstream-1.3.jar" in your example. Should it be "xstream-1.3.0.jar"? Hope this helps. Mark
Hi, Mark,
It is really a great tutorial. I try 1 by 1,
Yes, I download xstream-1.3.jar and use it in my test instead of xstream-1.2.2.jar,
I think never xstream-1.3.jar or xstream-1.2.2.jar, should be same ,right??
I double check again:
I download xstream-distribution-1.3-bin.zip, after unzip, it has xstream-1.3.jar, not xstream-1.3.0.jar;
size 402K.
By the way, If I use absolute classpath in your example's manifest.txt, how can I make it??
Regards
sunny
Dear Mark:
In manifest.txt, the statement: Class-Path: xstream-1.3.jar
Where is this actual xstream-1.3.jar located??
Is it located as I put in:
xstream-1.3.jar is put in my C:/DOC/Eclipse/xstream-1.3.jar
and I also put this classpath C:/DOC/Eclipse/xstream-1.3.jar in Project=>Property=>Libraries
??
Thanks
Dear Mark:
should I use:
Class-Path: C:\DOCS\Eclipse\xstream-1.3.jar
in my manifest.txt??
If yes, why still failed??
Thanks
sunny
Hi. I think you need to put the XStream JAR file in the same folder as the other JAR file. Please try that. Good luck. Mark