Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Building a jar

 
Priety Sharma
Ranch Hand
Posts: 156
Android Eclipse IDE
  • 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
Posts: 42967
73
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic