Results 1 to 5 of 5
  1. #1
    jadaleus is offline Member
    Join Date
    Oct 2008
    Posts
    12
    Rep Power
    0

    Default Making Java Application Executable

    How do I make my java application excutabe.

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

  3. #3
    jadaleus is offline Member
    Join Date
    Oct 2008
    Posts
    12
    Rep Power
    0

    Default How can I make my java program executable??????/

    what do u mean build a jar file can you expand on it. How can I make my java program executable??????/

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,883
    Rep Power
    25

    Default

    You have to compile if first. When you get a clean compile, you execute it with the java command, like the following:
    java <classname>
    where <classname> is the name of the class with the main method.

    If you put all the classes for the app in a jar file with a properly formatted manifest file, then you can execute the program by using the java command as follows:
    java -jar <jarfilename>
    The above commandline will be associated with a .jar file as the "open" command if you have installed a java JRE on your system. Ie you can execute the jar file by opening it with a double click.

  5. #5
    lks0912 is offline Member
    Join Date
    Oct 2008
    Posts
    3
    Rep Power
    0

    Default

    Create a jar file as said by "Norm" and use JExe Creator to make an exe of the jar. It is easy to use and can be found on the "www".
    It takes you through simple steps finally resulting an exe just to double click.

    Happy Learning..!!

    Lasitha.

Similar Threads

  1. how to execute an executable using java
    By kala143 in forum Java 2D
    Replies: 4
    Last Post: 09-26-2008, 04:10 PM
  2. convert a java binary/executable to a intermediate language
    By sumit_400461 in forum Advanced Java
    Replies: 1
    Last Post: 07-13-2008, 08:04 PM
  3. Executable Java
    By eva in forum New To Java
    Replies: 3
    Last Post: 12-31-2007, 12:38 AM
  4. Calling jar classes from java executable
    By SteM in forum Advanced Java
    Replies: 1
    Last Post: 11-27-2007, 09:21 AM
  5. Executable Application, use JCreator
    By baltimore in forum New To Java
    Replies: 1
    Last Post: 07-31-2007, 07:03 PM

Posting Permissions

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