English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Is it possible to decompile a java applet or some kind of java program running over the internet? Don't ask, I just want to know because I'm working on something in Java for a website of mine and I don't want people to hack it, so I'm testing it myself. Any help? Thanks.

2007-07-11 05:21:08 · 2 answers · asked by Invader Z 1 in Computers & Internet Programming & Design

2 answers

Yes. First, view the source of the page that contains the applet, which will identify where the .jar is loaded from. Second, use that URL to save that .jar on your own machine, uncompress it into individual .class files, and use jad (http://www.kpdus.com/jad.html) to decompile it back to source.

You can run an "obscurifier" on your .jar which will rename variables and methods so that the names are not as meaningful when decompiled.

But since you are (necessarily) letting the end-user download your compiled .jar in order to execute your applet on their machine, the .jar is out of your control and in their hands. You can try some tricks to make it harder for them to get to it, but anyone marginally competent will be able to get around them.

2007-07-11 07:21:14 · answer #1 · answered by McFate 7 · 1 0

Not that I am aware of. It's like a .EXE file which means you cannot see the code unless you have the source information. At least nothing I have ever seen that has a way to show you the code of an applet.

2007-07-11 05:29:20 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers