Results 1 to 5 of 5
  1. #1
    silverglade is offline Senior Member
    Join Date
    Feb 2009
    Posts
    182
    Rep Power
    6

    Default How do other people run my program

    Hi, I have a MyFirstApp.java program, I can run it by the command line with java MyFirstApp, but how would someone run it from their desktop like you would with an exec. file? Please. Any help greatly appreciated. Thank you. :D

  2. #2
    FlyNn is offline Senior Member
    Join Date
    Feb 2010
    Posts
    128
    Rep Power
    0

    Default

    Hi silverglade,

    The main feature of Java is that it can be run on different platform. You need to build a .jar file. If you are using an IDE there should be a function that does it. Or you can encapsulate your .class files in .jar files.
    To actually build an .exe you can use a simple applications called launch4j.

    Hope it helps.
    Measuring programming progress by lines of code is like measuring aircraft building progress by weight.

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

    Default

    Hello.
    Look into creating a jar file rather than an exe. As long as they have Java installed (and most OS installations do), they should be able to run the Jar file by double clicking it.

  4. #4
    silverglade is offline Senior Member
    Join Date
    Feb 2009
    Posts
    182
    Rep Power
    6

    Default

    Thank you very much Flynn and Fubarable. That helps a lot! Then I will be able to share my newbie apps with my friend over the net which will be hilarious . I will just send them to his email, and he can see my newbie java uberness. LOL. THANK YOU!!!

  5. #5
    goldest's Avatar
    goldest is offline Senior Member
    Join Date
    Oct 2009
    Location
    Pune, India
    Posts
    469
    Rep Power
    5

    Wink

    In case if you are interested : How To Create A JAR File

    Hope that helps,

    Goldest
    Java Is A Funny Language... Really!
    Click on * and add to member reputation, if you find their advices/solutions effective.

Similar Threads

  1. Replies: 2
    Last Post: 04-02-2011, 12:57 PM
  2. For the people who love Calculus
    By tim in forum Forum Lobby
    Replies: 9
    Last Post: 12-01-2009, 12:53 PM
  3. Any formerly seasoned Microsoft/ASP.NET/C# people out there who swiched?
    By gangelo in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 07-29-2009, 10:22 PM
  4. People class and Printlns
    By natep67 in forum New To Java
    Replies: 3
    Last Post: 05-02-2009, 04:29 AM
  5. Wats up, Java people
    By littlebrat in forum Introductions
    Replies: 0
    Last Post: 02-12-2009, 05:48 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
  •