A Java EXE Question

Discussion in 'Programming' started by saurabhk, Jul 22, 2006.

  1. #1
    Is there any method to convert Java's .class application files to windows .exe executables?
     
    saurabhk, Jul 22, 2006 IP
  2. skimmy

    skimmy Peon

    Messages:
    138
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Haven't tried it myself but it sounds like it does what you want.

    http://duckware.com/jexepack/index.html

    You can also write a little script in VB or something that will launch your .class file with the parameters you specify.
     
    skimmy, Jul 22, 2006 IP
  3. giraph

    giraph Guest

    Messages:
    484
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Compile it as an EXE instead of as an Applet?
     
    giraph, Jul 22, 2006 IP
  4. saurabhk

    saurabhk Peon

    Messages:
    149
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    How can I do that?
     
    saurabhk, Jul 22, 2006 IP
  5. giraph

    giraph Guest

    Messages:
    484
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Sorry, do you have the source code? If not then nevermind.
     
    giraph, Jul 22, 2006 IP
  6. Phynder

    Phynder Well-Known Member

    Messages:
    2,603
    Likes Received:
    145
    Best Answers:
    0
    Trophy Points:
    178
    #6
    Let me ask this - why do you want to do this? To protect your source code? To make it faster? To make it easier to deploy?

    Based on the context that you describe your goals, I have different recommended solutions.
     
    Phynder, Jul 22, 2006 IP
  7. Arkserver

    Arkserver Banned

    Messages:
    2,533
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Well i made a work around for it :)

    I made a cpp application that embeds the first 16k with a batch file into the exe so whenever you click the exe the batch calls the java class and it works like a normal exe file, though you need java installed (1.42 or higher)

    Everyone with a little cpp knowledge can make that.
     
    Arkserver, Jul 22, 2006 IP
  8. DrMalloc

    DrMalloc Peon

    Messages:
    130
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #8
    GCJ (part of the gnu gcc tools) compiles java source to executable machine code rather than java vm bytecode. A few people have ported the compiler to windows using various libraries (Cygwin probably has it implemented).

    http://www.thisiscool.com/gcc_mingw.htm is one place
     
    DrMalloc, Jul 22, 2006 IP
  9. saurabhk

    saurabhk Peon

    Messages:
    149
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Actually I want to compile the java code into .exe so that it could be run on systems not having java installed on them.

    Winip can not extract the files

    Anyways Which is the best language for developing Internet based Applications (in exe forms for windows) ?
     
    saurabhk, Jul 25, 2006 IP
  10. Phynder

    Phynder Well-Known Member

    Messages:
    2,603
    Likes Received:
    145
    Best Answers:
    0
    Trophy Points:
    178
    #10
    Can I ask why you it makes any difference? For my customers, I deliver my Java programs using Installanywhere - which includes an atomic installation of Java to be used by the application. Most of my deliveries are around 16-20 MB. Once they install it, they can't tell that it is a Java application vs. an C++ .exe.
     
    Phynder, Jul 25, 2006 IP
  11. Phynder

    Phynder Well-Known Member

    Messages:
    2,603
    Likes Received:
    145
    Best Answers:
    0
    Trophy Points:
    178
    #11
    Phynder, Jul 25, 2006 IP
  12. Arkserver

    Arkserver Banned

    Messages:
    2,533
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I agree with Phynder, end users don't care if its java/cpp/.net etc.. all they want is an application that runs and fit their needs.
     
    Arkserver, Jul 26, 2006 IP