Results 1 to 6 of 6
  1. #1
    seandingobat is offline Member
    Join Date
    Sep 2008
    Posts
    16
    Rep Power
    0

    Default can you create a .exe with java?

    can you create a standalone exe with java?

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

    Default

    Yes you can probably write a program in java that will create a .exe file. What would be the input to the java program?

    Or is the question: can you convert java class files into a .exe file?
    This has been discussed many times on the forums. A search will turn up lots of info.

  3. #3
    georgemc is offline Senior Member
    Join Date
    Sep 2008
    Posts
    135
    Rep Power
    0

    Default

    The real question is "Is it worth the effort, taking this nice portable piece of software and binding it to a particular platform, just to save you the effort of writing a few one-line shell scripts?"

  4. #4
    seandingobat is offline Member
    Join Date
    Sep 2008
    Posts
    16
    Rep Power
    0

    Default

    thanks for the nice replies.

    yes i know that this kind of question has been asked here many times. But it's just that i couldn't find what i needed during a search, so that's why i asked a new thread. I wasn't trying to be lazy.

    I've been taking a Java for about 3 months now with PHP background.

    I'm just super curious to know how to create an exe to run alone and do some stuff.

    I've searched around and found lot's of info, but really confusing becuase i've never done it before.

    I just want to be able to do this for example:

    write a simple java class that creates a square and a line of line below it.
    then deploy it to a .exe for windows so that when i open it, it shows the square and the line of words.

    where can i find info on this directly, or can someone point me to a place??


    thanks

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

    Default

    Java programs are deployed in .jar files. When they are "opened" the contained java program executes. No need to convert it to a .exe file. The only requirement is that there be a jre installed. Just like windows requires certain dlls be installed to be able to run a .exe file.

  6. #6
    jack239 is offline Member
    Join Date
    Jul 2008
    Posts
    35
    Rep Power
    0

    Default

    .EXE files are those softwares which run in windows machine only. Java offers platform independency like these softwares can be executed in windoes or Linux or mac etc. But if you still need to have an application for windows machine only but want to develop with java then you may use this software- JEXECreator 1.9

    Otherwise you can do one thin, have a batch file or cmd file which will launch your jar program.
    New to Java/PHP/Javascript development?
    For free help go to- www.techcubetalk.com

Similar Threads

  1. Create Calendar with Java
    By neoseeker191 in forum New To Java
    Replies: 4
    Last Post: 10-17-2008, 06:41 AM
  2. Create GIF from JPG using Java
    By trivektor in forum New To Java
    Replies: 2
    Last Post: 10-10-2008, 03:50 AM
  3. how to create Telnet CLI in JAVA
    By devan in forum Advanced Java
    Replies: 0
    Last Post: 08-11-2008, 10:21 AM
  4. How to create ToolTip in Java 3d
    By roshithmca in forum AWT / Swing
    Replies: 0
    Last Post: 02-04-2008, 07:57 AM
  5. how to create pdf document from java
    By sreedharvlsi in forum New To Java
    Replies: 1
    Last Post: 07-02-2007, 12:57 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
  •