Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to build an executable jar with Eclipse

 
Vijay Vaddem
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic