Results 1 to 14 of 14
  1. #1
    BeeGee is offline Member
    Join Date
    Apr 2010
    Posts
    33
    Rep Power
    0

    Default Executable File.

    Hello,
    I am writing to find out if there is a way to make a program executable. For example, If I write a program, how can someone else who has no clue about programming begin to use the program by just double clicking it?

    Any help is much appreciated.

    Thanks

  2. #2
    robertbob is offline Member
    Join Date
    May 2010
    Posts
    23
    Rep Power
    0

    Default

    Convert it into a .jar file. If you use an IDE it should have a wizard that guides you through it. All the user needs is Java installed on their computer to run the program.

  3. #3
    BeeGee is offline Member
    Join Date
    Apr 2010
    Posts
    33
    Rep Power
    0

    Default

    Thanks robertbob...so does the user need jdk or something or just the java from Sun?.

    If so, can you please send me a viable link.

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

    Default

    Quote Originally Posted by robertbob View Post
    Convert it into a .jar file. If you use an IDE it should have a wizard that guides you through it. All the user needs is Java installed on their computer to run the program.
    Yeah, jar files are the best way to distribute your application. Making *.exe file is not a good idea, because it's only bound with Windows. Cannot use in UNIX/Linux systems even Java is platform independent.

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

    Default

    Quote Originally Posted by BeeGee View Post
    Thanks robertbob...so does the user need jdk or something or just the java from Sun?.

    If so, can you please send me a viable link.
    JDK, stand for Java Development Kit, which is used/required for development process only. Just to run a Java application on a system you no need to install JDK version on it.

    JRE, Java Runtime Environment, provide the necessary platform to run a Java application in a system.

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

    Default

    And also, JDK package (installation package) comes with the relevant JRE version as well. Once you install a JDK version in your machine, by default you've a JRE version as well. Vise verse not.

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

    Default

    Quote Originally Posted by BeeGee View Post
    If so, can you please send me a viable link.
    You can found the download link at Suns official website. Did you check on there?

    https://cds.sun.com/is-bin/INTERSHOP...-CDS_Developer

  8. #8
    BeeGee is offline Member
    Join Date
    Apr 2010
    Posts
    33
    Rep Power
    0

    Default

    Thanks. I am using Eclipse IDE. I however don't think Eclipse has a wizard but I'll try and see.

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

    Default

    It should have, kind of build the project or something.

    I'm not exactly sure about that, because I'm a NetBeans user.

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

    Default

    It should have, kind of build the project or something.

    I'm not exactly sure about that, because I'm a NetBeans user.

  11. #11
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by BeeGee View Post
    Thanks. I am using Eclipse IDE. I however don't think Eclipse has a wizard but I'll try and see.
    It most certainly does have a wizard for this. Look at the File -- Export menu for more.

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

    Default

    It should have, kind of build the project or something.

    I'm not exactly sure about that, because I'm a NetBeans user.

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

    Default

    Quote Originally Posted by Eranga View Post
    Yeah, jar files are the best way to distribute your application. Making *.exe file is not a good idea, because it's only bound with Windows. Cannot use in UNIX/Linux systems even Java is platform independent.

    full ack. but what, if the user has no jre installed? not everybody who wants to use a jar is able to install and configure a jre. this is really a drawback in java compared to compilers who create an exe or a bin.

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

    Default

    Agreed. But that's why JRE comes by default in UNIX/Linux systems. And I think vista comes with JRE already, I'm not 100% sure about that. And and I believe that MS people have integrate it with next releases soon. What you think?

Similar Threads

  1. Exporting to a executable JAR file
    By Drun in forum Eclipse
    Replies: 4
    Last Post: 03-27-2010, 03:16 PM
  2. Executable java to read and write to a txt file
    By njoymirror in forum New To Java
    Replies: 2
    Last Post: 03-21-2009, 01:19 AM
  3. Executable Jar File Creation
    By Doctor Cactus in forum New To Java
    Replies: 7
    Last Post: 11-13-2008, 03:31 AM
  4. Manifest file in executable jars
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-15-2007, 08:16 PM
  5. Generate an executable file
    By romina in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 05:30 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
  •