1

I'm used to inspecting JavaScript, HTML and CSS from the Chrome console. This time I want to inspect the source code of a Java applet. The line of code in question looks like:

<applet codebase="java/" code="Training.class" width="230" height="80"></applet>

How can I understand what this Java applet does from the Chrome console?

1 Answer 1

3

You can't. At least not without some effort. A Java applet is compiled code. So to inspect it, you'd need access to the source code. You can decompile it, or even inspect the actual byte code, but it'll be a lot harder than inspecting regular Javascript/html/css.

Sign up to request clarification or add additional context in comments.

3 Comments

I've been working on a Java decompiler that also doubles as a disassembler. Unlike javap, it includes color-coded output if you have an ANSI/xterm-256 compliant terminal.
Inspecting decompiled source or even Java bytecode isn't much harder then javascript. If the Javascript is minified, it's probably even easier.
It can be, but it all depends.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.