• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Viewing Java source code from a webpage applet

chiggachu

Senior member
Is there any way I can find and view the code for the class of an applet from a webpage? Do I have to find the class that the applet refers to and then save it? how do i view it?

any help is appreciated
 
You would have to decompile the .class files that the applet uses into .java files. I'm not really familiar with decompilers, so I can't tell you how accurate they are or which ones work better than others.
 
still need help:

where do i even find the .class that the webpage is using? i'm not a web-page person, so i dont' know how the file structures work. is it possible to download a copy of the .class file that appears in an applet? I assume that if I can view the applet on my computer, the code must be available somehow...
 
It should be in your Temporary Internet Files (or cache folder for whatever browser you are using). Look for .CLASS files or .JAR files (packages containing .CLASS files).
 
The "binary code" of the applet will be on your computer but
the raw sourcecode will not. You have to compile a java applet
and therefore you will not see how the author created it without
some doing. It is not like javascript or html. The other way to
get the .class file is to look at the source of the webpage that
the applet is on. You will see a src=" " that will contain the
location of the applet.

Hope that helps,
Shuten
 
thanks guys, i did everything suggested...took the file from my temp internet files and decompiled it into source code. thanks again
 
Back
Top