File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes help needed with creating jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "help needed with creating jar file" Watch "help needed with creating jar file" New topic
Author

help needed with creating jar file

Moieen Khatri
Ranch Hand

Joined: Nov 27, 2007
Posts: 144
Hi ,

I have a Java project in eclipse with src files and lib jar files.I want to convert this entire package to jar file which is to be run on a remote server.

The eclipse project is an application with main() method

I want to create the jar file in such a way that when this jar is called via cmd prompt,the main method class is called which invokes the rest of the applications.

Can someone please help me with this as I have no previous experience of creating jar files.

Thanks

Moieen
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
The jar file needs to have a manifest with a Main-Class entry: http://faq.javaranch.com/java/JarFiles


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help needed with creating jar file
 
Similar Threads
EclipseME: How to run a downloaded jar & jad combo?
Building JAR's for linked projects...
Advantage of a jar file
Exporting to jar file in eclipse
jsp - jar - dll