-
JRE to Java file
Hello
I am working on providing GUI to core java application. All I am having is Jre file as the previous developer switched to organisation. Well this is developed 10 years back a small scientific application.
This is just command prompt base application. I want to extract the JAVA files from JRE file.
Is this possible.
Sandeeep
-
Re: JRE to Java file
Do you mean you have a Java class file or jar file and you want to get back the Java source file(s) that created it?
If so, have a look at the Java Decompiler.
And the users exclaimed with a laugh and a taunt: "It's just what we asked for but not what we want."
Anon.
-
Re: JRE to Java file
Thanks for your reply
Well if this is the case that every jar files can be unzipped to get class files and each class files can then be decompiled to get java code, then i want to know that how the java source code can be made secure
i.e. no other can use the code.
Sandeep
-
Re: JRE to Java file
Sandeep,
As far as I know, the only thing available that can make your java source code (semi) secure is an obfuscator. Try an Internet search for the terms "java obfuscator" -- I'm sure it will bring back lots of hits.
Good Luck,
Avi.
-
Re: JRE to Java file
I think you want to look at obfuscating your code.
Have a look here for more details mindprod.com/jgloss/obfuscator.html
-
Re: JRE to Java file
you cant make any code secure
the best attempts towards that you can get are obfuscation; the idea of making your code so hard to understand for a human that the cost of gaining an understanding outweighs the cost of the code
and server-side processing; you insist that your clients have an internet connectomn and that they use a server you run to perform some task that is critical to the app. this puts an SLA on you, however, as you become directly responsible for their business continuity