How To Convert form java to exe???


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 15 of 15

Thread: How To Convert form java to exe???

  1. #1
    Join Date
    Jan 2005
    Posts
    38

    How To Convert form java to exe???

    How To Convert form java to exe???

    Good Day Everyone, I want to ask you
    How To Convert form java to exe???
    e.g. I have one .java file, 3 .class
    and 1 .txt and i want to put them in one .exe
    file. Moreover, I want the exe programe to be
    executed in any computer even computers
    that have not Java Virtual Machine (JVM).

    thank you...

  2. #2
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    These guys seem to have it:

    http://www.xlsoft.com/en/products/jet/index.html

    an of course its free ..... NOT
    eschew obfuscation

  3. #3
    Join Date
    Sep 2004
    Posts
    150
    If you're interested in windows executables, you might try C#. It is a language nearly identical to java (if you know java you will know a good amount of C# right away). It compiles to .exe, although it requires what's called the .NET framework, which is itself a virtual machine of sorts.

    There are free utilities that will transform your java code into C# from what I remember.

  4. #4
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    Here is a place that offers a trial version
    of a java2exe compiler. It takes 72 minutes to install
    on a 1.8gHz/1mB pc (mine). I tried it and it really took
    me back, to the bad old days of everlasting compile/link
    jobs.

    http://www.excelsior-usa.com/jetdlevala.html

    PS: converting to C# (a deperate java-wannabe from
    the bug-mongers of mSoft) and then be in need of another VM, this time to make mr. microsoft even more
    disgustingly rich, seems is a move backwards
    eschew obfuscation

  5. #5
    Join Date
    Sep 2004
    Posts
    150
    Yes, C# is indeed java's evil clone. Using it will take you toward the dark side..

  6. #6
    Join Date
    Jan 2005
    Posts
    38
    Thank you ...

    But is there a free programe that make it...

    I need some sites or books to learn about c#

  7. #7
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    Hmm, so to save a couple of hundred dollars you move
    to C# and another VM.
    Hmm, what can I say ? Good luck on your sideways/slightly
    backwards career move... We won't be hearing much
    from from you in the futire then i guess.

    BTW, what makes you think you'll be saving money by
    adopting MS technology ? Just curious ...
    eschew obfuscation

  8. #8
    Join Date
    Jan 2005
    Posts
    45
    Hi all,

    To my point of view, just few java applications really need to be converted to executable. If an application had really required to be a 'real' executable, one should have take the decision during design time... and switch to C++ or other compiled languages developement.

    Most of newcomers to java actually ask for a way to make their java application look like native (mostly windows) ones. This can be achieve to a point by java launchers or smart installers.

    So, may I suggest Luis Figo to check theses launchers:

    - http://www.syncedit.com/download_javalauncher.html
    - http://www.duckware.com/jexepack/index.html
    - http://www.rolemaker.dk/nonRoleMaker...a_launcher.htm

    or use this free smart installer http://goldengate.zerog.com/releases/now/

    Best regards,
    Lionel Badiou
    CodeFutures -
    Java Code Generation

    http://www.codefutures.com



  9. #9
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    You said it.
    eschew obfuscation

  10. #10
    Join Date
    Jan 2005
    Posts
    38
    Thank you

    but ...

    these programe required JVM ...

    is there any programe that makes it an does not required JVM...

    Also, I study Java at University and i took 2 courses but i don't know where i can use Java if it's not converted to exe ... is it only use it as an applet???

  11. #11
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    Java is a full blown programming language.
    Applets are just extensions of the
    java.awt.Panel class and the reason that these
    can run embedded in an html page is that the browser
    hooks up the client's local JVM to the applet code.

    If you want to make an application you usually base that
    on the Frame/JFrame class.
    eschew obfuscation

  12. #12
    Join Date
    Jan 2005
    Posts
    38
    Originally posted by sjalle

    If you want to make an application you usually base that
    on the Frame/JFrame class.
    but how the user can use this application ???

  13. #13
    Join Date
    Sep 2004
    Posts
    150
    but how the user can use this application ???
    Java files compile to .class files. You can put all your .class files inside a single .jar file, and double clicking the .jar file will execute the program.

    If done correctly the program will launch as any windows program will. It automatically calls the class with the main method when you do that..

  14. #14
    Join Date
    Jan 2005
    Posts
    38
    Originally posted by Philwx
    Java files compile to .class files. You can put all your .class files inside a single .jar file, and double clicking the .jar file will execute the program.

    If done correctly the program will launch as any windows program will. It automatically calls the class with the main method when you do that..
    But jar files required JVM and this a problem for computers that do not have JVM

  15. #15
    Join Date
    Sep 2004
    Posts
    150
    Ok, then you're back to lionelBadiou's post about java installers that put everything in there for you and are executable.

    By the way, I sent you a PM (private message) earlier.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center