Results 1 to 2 of 2
Thread: Jar in eclipse
- 01-07-2012, 07:20 PM #1
Member
- Join Date
- Mar 2011
- Posts
- 31
- Rep Power
- 0
Jar in eclipse
I am trying to run my program as a jar file and I am completely lost. I searched the forums and have searched the internet and youtube but can't seem to grasp the concept. From what I understand, jar files are what makes java so important in that they can be run on any platform. Now when I try to create mine in eclipse, after I hit finish I get the icon on my desktop but I can't run it. I have searched how to run said jar file but it still isn't working! I have tried downloading JSmooth and using the notepad Main-Class method. So far nothing is working! Can some one please explain to me how I can run this program to see what it looks like outside of java!? Any help is greatly appreciated.
- 01-07-2012, 10:07 PM #2
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,605
- Rep Power
- 5
Re: Jar in eclipse
You probably exported as a jar, rather than an Executable Jar (you can verify this by un-jaring the jar and checking the manifest file). You could just add a Manifest file specifying the main class to the created jar using the jar utility that comes with the JDK, or use the appropriate export in Eclipse (eg export as executable jar).
Similar Threads
-
New Eclipse plugin: shared (and improved) Eclipse Templates
By dougwightman in forum Java SoftwareReplies: 0Last Post: 08-10-2011, 05:26 PM -
New Eclipse plugin: shared (and improved) Eclipse Templates
By dougwightman in forum EclipseReplies: 0Last Post: 08-10-2011, 05:24 PM -
Java code / eclipse API's to close all open editors in eclipse
By userj2ee in forum EclipseReplies: 0Last Post: 07-27-2011, 12:52 PM -
Eclipse Plugin Development: How to register SVN actions inside an Eclipse plugin
By olzibambolzi in forum EclipseReplies: 4Last Post: 12-21-2010, 03:26 PM -
Eclipse Bug - Can't Read From A File Using Eclipse?
By carlodelmundo in forum New To JavaReplies: 6Last Post: 01-26-2009, 04:25 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks