aspose file tools
The moose likes Beginning Java and the fly likes Building a jar Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Building a jar" Watch "Building a jar" New topic
Author

Building a jar

Priety Sharma
Ranch Hand

Joined: Jun 10, 2008
Posts: 156

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.


Priety.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
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


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Building a jar
 
Similar Threads
.jar
self executable jar
stand alone class and the class path
error while running a jar file builded by netbeans
how to run the jasper report in jar file