I have made a java application in Eclipse and it has a Main class which has the main method from which the application runs. I want that i should be able to run the application from outside the eclipse maybe by clicking on some icon.
Can anyone guide how that might be possible?
3 Answers 3
JAR file using Eclipse IDE
- Right click on your project, which you want to create a JAR file of. And select Export from the context menu.
- Select JAR file from Java folder and click Next.
- Provide the Destination path and click on Finish to create the JAR.
Comments
You should build the application first,then you'll find a file with the extension ".jar" in the project's directory
you can run this jar anywhere
Comments
Once you have a Jar, you might also deploy the app. using Java Web Start.
JWS can do desk-top integration tasks like providing a desktop icon (with customized icon) and/or menu item. JWS also offers many other nice features like configurable automatic update & file associations, and offers a comprehensive API that is only available to JWS apps. The JNLP API makes persistence, single instance code and other things easy.