Reputation: 34735
Till now, I have been using Netbeans IDE
for Java Applications. To distribute applications made in Netbeans, I just click on clean and build
and it packs the application in .jar file which resides in a dist
directory.
Now I have made a java project in Eclipse
. Is Eclipse has any functionality similar to clean and build
functionality of Netbeans
by which we can pack java applications to distribute them.
Upvotes: 6
Views: 12831
Reputation:
Eclipse has a function to export the whole thing as a exetutable jar. It is under file>export.
Upvotes: 0
Reputation: 26418
Yes it has a clean and build functionality. clean which clean all the developed a classes from the specified location build which builds the class files at the same specified location respectively.
To distribute a project as a jar then you have to right click on the project and select export and in that select as jar.
Upvotes: 0
Reputation: 12235
File -> Export...
And choose Java -> JAR File. You will get a wizard to export any of your projects
Upvotes: 5
Reputation: 43560
You can right-click the project, select Export and choose Java, then JAR as the format.
Upvotes: 13