How to make EXE files in JAVA
posted 23 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Hello friends,
I am programming in java for last one year. nowadays, I am making a project using SWING & AWT. I want to make an EXE file of my project so that the source code remains protected. Can anyone Tell me how to do so? I am new in this forum, but I am assure that everyone will be kind to me.
Thanks a lot in advance.
-Kapil Chugh
I am programming in java for last one year. nowadays, I am making a project using SWING & AWT. I want to make an EXE file of my project so that the source code remains protected. Can anyone Tell me how to do so? I am new in this forum, but I am assure that everyone will be kind to me.
Thanks a lot in advance.
-Kapil Chugh
posted 23 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Hi Kapil,
Well I dont think you make an exe file here. But you can distribute class files and if you want jar it and distribute. They are binary and normally people wont be able to read the source code.
Nasser
Well I dont think you make an exe file here. But you can distribute class files and if you want jar it and distribute. They are binary and normally people wont be able to read the source code.
Nasser
posted 23 years ago
Just one question ...Why do you want to keep your source code protected ???
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Originally posted by Gautam Chugh:
so that the source code remains protected.
Just one question ...Why do you want to keep your source code protected ???
Shubhrajit
posted 23 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Gautam
This question has been asked many times before - please check out the search page for an answer. You'll get one faster that way!!
This question has been asked many times before - please check out the search page for an answer. You'll get one faster that way!!
Dave
posted 23 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
If you just want to protect your code, look for an Obfuscator in google.
posted 23 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Hi,
a few things.
First making an exe will not "Protect" your code, as decompilers exist to decompile any program. You could compile your source code with the -o switch will obfuscate your code ( meaning, it will rename methods and classes so that only a machine could understand it. )
second a jar file is just an equivalent to a "zip" or "tar" file. So anyone with winzip or a unzip utility of the sorts could open the Jar and take a look at the source.
Third the main advantage to making an exe is to be able to lauch if with a double click action ( or similar lauching tactic ). but by making an exe you have just removed the portability of your code to multiple platforms.
By making an exe you are taking the class files and turning them into machine specific byte code.
fourth, if you really want to make an exe, you can do a search on download.com for Java EXE, and you will find a list of programs to do so.
Tim
a few things.
First making an exe will not "Protect" your code, as decompilers exist to decompile any program. You could compile your source code with the -o switch will obfuscate your code ( meaning, it will rename methods and classes so that only a machine could understand it. )
second a jar file is just an equivalent to a "zip" or "tar" file. So anyone with winzip or a unzip utility of the sorts could open the Jar and take a look at the source.
Third the main advantage to making an exe is to be able to lauch if with a double click action ( or similar lauching tactic ). but by making an exe you have just removed the portability of your code to multiple platforms.
By making an exe you are taking the class files and turning them into machine specific byte code.
fourth, if you really want to make an exe, you can do a search on download.com for Java EXE, and you will find a list of programs to do so.
Tim

---<br />Nothing is impossible, only improbable !!!
| Let's get him boys! We'll make him read this tiny ad! Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing |










