Please any one give me the suggestion for this. I'm having the Xerces-J-source.zip file and I need to convert to Xerces-J-source.jar file.
Generally if your ZIP contains the class files (And not the sources):
Just rename the file, a jar
is a zip
file. But if you're aiming for a class to be launched with command java -jar myProject.jar
you should create a MANIFEST file containing the main-class and libraries to use in the classpath.
So in your case since you got the sources (Java file), you'll have to compile classes and create the JAR. Eclipse has an Export as JAR
feature if you use it.
That doesn't make any sense. If you need Xerces-J the better is download the jars from the website .
If you want the get the jar form the source, you need to compile it, but there is no need when you can download it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.