Results 1 to 5 of 5
  1. #1
    Drun's Avatar
    Drun is offline Member
    Join Date
    Nov 2009
    Location
    Indian Head, MD (Missing Pittsburgh PA)
    Posts
    44
    Rep Power
    0

    Default 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

  2. #2
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    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.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

  4. #4
    Drun's Avatar
    Drun is offline Member
    Join Date
    Nov 2009
    Location
    Indian Head, MD (Missing Pittsburgh PA)
    Posts
    44
    Rep Power
    0

    Default

    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 06:12 PM.
    Michael P. O'Connor
    http://www.mikeoconnor.net

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Exporting WAR File Issue
    By bsimic in forum Eclipse
    Replies: 0
    Last Post: 12-29-2009, 04:23 PM
  2. Executable Jar File Creation
    By Doctor Cactus in forum New To Java
    Replies: 7
    Last Post: 11-13-2008, 04:31 AM
  3. Manifest file in executable jars
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-15-2007, 09:16 PM
  4. Generate an executable file
    By romina in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 06:30 AM
  5. Date format display in CSV file after exporting
    By latha in forum Advanced Java
    Replies: 0
    Last Post: 08-03-2007, 09:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •