File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark ""jar cvf classes.jar classes.class" is not correct?" Watch ""jar cvf classes.jar classes.class" is not correct?" New topic
Author

"jar cvf classes.jar classes.class" is not correct?

Dragon Liu
Greenhorn

Joined: Sep 12, 2001
Posts: 22
I use "jar cvf Test.jar Test.class" to build the jar file.
but when I use java -jar Test.jar ,Some error occured!
(I am now in the director where the jar file locate.)
the error info is :"Failed to load Main-Class manifest attribute from Test.jar "
help please. I cann't resove it!


Hello,This is my question
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
What part of the test is this on?
Dragon Liu
Greenhorn

Joined: Sep 12, 2001
Posts: 22
Hi Paul Stevens:
Thanks for your responses first.
the Test.java is very simple.
public class Test{
public static void main(String[] args){
System.out.println("hello,world");
}
}
Jane Griscti
Ranch Hand

Joined: Aug 30, 2000
Posts: 3141
Hi Dragon,
I'm going to move this over to Other Java API. This forum is only for questions directly relating to the SCJP exam.
------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform


Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
 
 
subject: "jar cvf classes.jar classes.class" is not correct?
 
Threads others viewed
Executing a Jar file
How to modify classpath ?
create JAR
Applet Signing problem
create jar problem: jarFile.jar: no such file or directory
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com