Results 1 to 5 of 5
- 03-10-2010, 02:35 PM #1
Exporting to a executable JAR file
I have a class that has a main function that I would like to export to a executable jar file. When I go to to export it, I right click on the package of that contains the class with the main function, Export and select Executable Jar file, I enter a jar file name c:\<classnamewithmain>.jar but the Next and finnish buttons stay disabled. Is there something that I am missing?
Michael P. O'Connor
http://www.mikeoconnor.net
- 03-14-2010, 09:27 PM #2
hi Drun
make sure eclipse can run your code without errors. go to export and then when the export dialog appears select the Java folder and then Runnable JAR file, click next and when the Runnable JAR file dialog appears select the right launch configuration <classnamewithmain> in the list box and browse for the destination folder and after that the Finish button should be enabled. good luck.
- 03-15-2010, 02:26 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Basically exporting means that build a jar file for your application, right?
- 03-26-2010, 05:10 PM #4
Eranga, yes.
j2me64, yes it was running with no problems in eclipse infact I had run it a few times to test if it was working before I even tried to export as a runable jar.
Also sorry about the delay on my replies, been a bit busy with multipul things (see my other post I put up.)Last edited by Drun; 03-26-2010 at 05:12 PM.
Michael P. O'Connor
http://www.mikeoconnor.net
- 03-27-2010, 03:16 PM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Add your JAR file into the class path and import it into your source. Then you ca use that JAR file globally, in any other project.
Similar Threads
-
Exporting WAR File Issue
By bsimic in forum EclipseReplies: 0Last Post: 12-29-2009, 03:23 PM -
Executable Jar File Creation
By Doctor Cactus in forum New To JavaReplies: 7Last Post: 11-13-2008, 03:31 AM -
Manifest file in executable jars
By Java Tip in forum Java TipReplies: 0Last Post: 12-15-2007, 08:16 PM -
Generate an executable file
By romina in forum New To JavaReplies: 1Last Post: 08-07-2007, 05:30 AM -
Date format display in CSV file after exporting
By latha in forum Advanced JavaReplies: 0Last Post: 08-03-2007, 08:09 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks