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?
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
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.
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
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
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
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.
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
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â§
H E L T A - S K E L T A...........Simple but Effective
Certified Wifi Penetration Specialist
CompTIA A+ Certified
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