File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes help creating jar in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "help creating jar in eclipse" Watch "help creating jar in eclipse" New topic

help creating jar in eclipse

harshada patil
Ranch Hand

Joined: Mar 12, 2011
Posts: 96
I am creating a standalone java application in eclipse, and i want to create jar file of that application, i want directory structure for my app as
- MyApp.jar
- Input (folder)
-- file
-- file
- Lib (folder)
-- lib1.jar
-- lib2.jar
(path of Lib folder can change in future) so how to create jar of app such that i can modify classpath to point to new Lib (folder) location without creating new jar every time Lib (folder) path changes and how to set file path ?
Nam Ha Minh
Ranch Hand

Joined: Oct 31, 2011
Posts: 502

I think you should use Ant to package a jar file with such structure. Then add Ant build file to project's builders in Eclipse.

PM Me If You Want to get Urgent Help on Java Programming
I agree. Here's the link:
subject: help creating jar in eclipse
It's not a secret anymore!