This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes How to build an executable jar with 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 "How to build an executable jar with Eclipse " Watch "How to build an executable jar with Eclipse " New topic
Author

How to build an executable jar with Eclipse

Vijay Vaddem
Ranch Hand

Joined: Feb 13, 2004
Posts: 243
Hi,

I'm trying to create a executable jar file for the application i developed
with eclipse.

I exported it as a jar file. But it isn;t working.
am i missing something or is there any other way of doin it?

Vijay
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
The "Export... JAR" thing in Eclipse does not create an executable JAR file -- it's just for packaging your project directory into a single, compressed file.

In order to create an executable JAR file, I'd recommend taking a look at Ant and its <jar> task. And then there's Google, of course.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
GeeCON Prague 2014
 
subject: How to build an executable jar with Eclipse