Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Java to Exe

  1. #1
    Join Date
    Feb 2007
    Posts
    1,108
    Rep Power
    0

    Question Java to Exe

    Want to convert from java to exe, been using a few java to exe converters, they dnt seem to work. I have heard it can be done using netbeans anyone knows how this can be done?
    H E L T A - S K E L T A...........Simple but Effective
    Certified Wifi Penetration Specialist
    CompTIA A+ Certified

  2. #2
    Join Date
    Oct 2004
    Posts
    4,814
    Rep Power
    24

    Default

    wonder why you would want to do that? Contrary to popular believe its not going to speed up the program, If u want a speedy program its better to spend time to make sure its well optimized to begin with. Also you lose the Java's hotspot capabilities something your code wont benefit from if its compiled to a binary executable.

  3. #3
    Join Date
    Feb 2007
    Posts
    1,108
    Rep Power
    0

    Default

    i think my programs wud actually benefit
    Last edited by Kev4eva; Aug 14, 2007 at 11:39 AM.
    H E L T A - S K E L T A...........Simple but Effective
    Certified Wifi Penetration Specialist
    CompTIA A+ Certified

  4. #4
    Join Date
    Feb 2007
    Posts
    1,108
    Rep Power
    0

    Smile

    well in my opinion the exe is better. Since it can be used almost on any platform without the the need for certain tings. Wat i basically want is the program to run independently i.e without the jdk or javaw.exe? u understand wat am sayin?
    So can u tell me about this netbeans ting, or any executable creator?
    H E L T A - S K E L T A...........Simple but Effective
    Certified Wifi Penetration Specialist
    CompTIA A+ Certified

  5. #5
    Join Date
    Feb 2005
    Posts
    85
    Rep Power
    0

    Default

    Quote Originally Posted by Kev4eva View Post
    Want to convert from java to exe, been using a few java to exe converters, they dnt seem to work. I have heard it can be done using netbeans anyone knows how this can be done?
    Dont know how to do it using netbeans but try these links for converters:

    http://www.javacoffeebreak.com/faq/faq0042.html
    http://www.regexlab.com/en/jar2exe/
    http://www.syncedit.com/software/javalauncher/
    Code King aka Code WizZzard: Motivated By The Challenge, Driven By The Will To Succeed.

    In The Land Of Programmers, The Code WizZzard Is KING. Sen on anything VB

  6. #6
    Join Date
    Nov 2005
    Posts
    2,575
    Rep Power
    21

    Default

    Quote Originally Posted by Kev4eva View Post
    well in my opinion the exe is better. Since it can be used almost on any platform without the the need for certain tings. Wat i basically want is the program to run independently i.e without the jdk or javaw.exe? u understand wat am sayin?
    So can u tell me about this netbeans ting, or any executable creator?
    Correct me if I'm wrong but if there is no JDK or JRE I'm guessing it is no longer a Java program as there is no virtual machine for the Java code to run in. I can understand you wanting to run a Java program on Windows without creating a batch file that calls javaw.exe to run your program which would make your application seem more native but I highly doubt any of the programs suggested will allow the exe created to run without a JDK/JRE installed.

    You may need to research if the feasibility of converting your Java program to C++/C# to run on Windows instead.

  7. #7
    Join Date
    Feb 2007
    Posts
    1,108
    Rep Power
    0

    Default

    thanks for the links i appreciate!!!!
    H E L T A - S K E L T A...........Simple but Effective
    Certified Wifi Penetration Specialist
    CompTIA A+ Certified

  8. #8
    Join Date
    Aug 2006
    Posts
    166
    Rep Power
    0

    Default

    Quote Originally Posted by psilos View Post
    Correct me if I'm wrong but if there is no JDK or JRE I'm guessing it is no longer a Java program as there is no virtual machine for the Java code to run in. I can understand you wanting to run a Java program on Windows without creating a batch file that calls javaw.exe to run your program which would make your application seem more native but I highly doubt any of the programs suggested will allow the exe created to run without a JDK/JRE installed.

    You may need to research if the feasibility of converting your Java program to C++/C# to run on Windows instead.
    Yo psilos, I doubt Kev4eva understands fundamentally how Java works. If you wrote your program in Java It HAS TO USE THE JVM, [jre has to be installed].
    I had this same confusion when learning Java coming from VB. Netbeans can create a .jar file for you thats as far as you will get for a single executable file. wat you can do is what psilos told u, thats prob what the programs that "convert" do anyways, but you will HAVE TO install the JVM for the program to work, and u can setup Linux or Windows to automatically call "java / java.exe " when you click a .class or calll "jar / jar.exe" when u click a jar file
    --
    ƒrÅzRâ§

  9. #9
    Join Date
    Feb 2007
    Posts
    1,108
    Rep Power
    0

    Default

    Quote Originally Posted by frazras View Post
    Yo psilos, I doubt Kev4eva understands fundamentally how Java works. If you wrote your program in Java It HAS TO USE THE JVM, [jre has to be installed].
    I had this same confusion when learning Java coming from VB. Netbeans can create a .jar file for you thats as far as you will get for a single executable file. wat you can do is what psilos told u, thats prob what the programs that "convert" do anyways, but you will HAVE TO install the JVM for the program to work, and u can setup Linux or Windows to automatically call "java / java.exe " when you click a .class or calll "jar / jar.exe" when u click a jar file
    i know that for me to write in java the jvm has to be installed, wat im askin abt is the executable, u summed it up about wat netbeans can do & answered my questions, thanks i appreciate it.
    H E L T A - S K E L T A...........Simple but Effective
    Certified Wifi Penetration Specialist
    CompTIA A+ Certified

  10. #10
    Join Date
    Sep 2005
    Posts
    55
    Rep Power
    0

    Default

    If you really want an executable that runs without an installed JRE/JDK you would have to look at

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

    This is an excellent product for Windows and Linux - with a hefty price tag ...

    A free alternative would be

    http://gcc.gnu.org/java/

    but that is far from perfect.

    I have to second leoandru's opinion though - it shouldn't be necessary these days to do that. If you just need an installer, you can include the JRE/JDK.

    Cheers
    Michael

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •