File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Building a jar

 
Priety Sharma
Ranch Hand
Posts: 156
Android Eclipse IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How does one build a jar of a project created in Eclipse from the command line.

I tried the following from the command prompt:
Project folder>jar cf test.jar *.class

But the result was :
*.class : no such file or directory

Priety.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm guessing that the class files aren't in the directory where you're issuing the jar command. You need to specify the path to where they live: Packaging Programs in JAR Files
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic