The Artima Developer Community
Sponsored Link

Java Answers Forum
applet source code

3 replies on 1 page. Most recent reply: Sep 15, 2005 7:02 AM by Jeff Thomson

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
Juan Lozano

Posts: 1
Nickname: jal
Registered: Sep, 2005

applet source code Posted: Sep 14, 2005 6:55 PM
Reply to this message Reply
Advertisement
is it possible to decompile a running applet to get the source code back?


Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: applet source code Posted: Sep 14, 2005 10:25 PM
Reply to this message Reply
> is it possible to decompile a running applet to get the
> source code back?

What do you mean? Reverse engineer Byte code? If that's
the case I have read some where that it is possible to
reverse engineer byte cod. You may get the method signatures
of any class the applet uses by running javap against the
Class file.

javap SomeClass.class;

In any case why are you trying to reverse engineer someone's
byte code? Nothing malicious I hope.

Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: applet source code Posted: Sep 14, 2005 10:25 PM
Reply to this message Reply
You need the applet's class files (or jar files) and a decompiler (DJ Java Decompiler for example).

Jeff Thomson

Posts: 14
Nickname: thomson
Registered: Sep, 2005

Re: applet source code Posted: Sep 15, 2005 7:02 AM
Reply to this message Reply
If I am not wrong understanding your query, I agree with Matthias that you need a decompiler to do the job. There are Java decompilers available which will decompile a Java applet into compilable Java source code. Since Java uses no preprocessors and has a very specific byte code format, the decompilers have surprisingly good output. Here are a few links for further info.

http://www.devdaily.com/java/edu/pj/pj010022/index.shtml
http://www.bysoft.se/sureshot/cavaj/

----------------
Jeff Thomson
http://www.devsquare.com
Online Application Development

Flat View: This topic has 3 replies on 1 page
Topic: equals doubt Previous Topic   Next Topic Topic: public class

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use