Skip to main content

Questions tagged [javap]

javap - The Java Class File Disassembler

19 votes
2 answers
10k views

Is there a disassembler + debugger for java (ala OllyDbg / SoftICE for assembler)?

Is there a utility similar to OllyDbg / SoftICE for java? I.e. execute class (from jar / with class path) and, without source code, show the disassembly of the intermediate code with ability to step ...
Ran Biron's user avatar
  • 6,365
5 votes
2 answers
2k views

javap in a programmable way

Can we use javap in our own java code in a programmable way? for example, the following code: public class TestClass { public static void main(String[] args) { System.out.println("hello ...
DON1101's user avatar
  • 83
24 votes
3 answers
15k views

Understanding javap's output for the Constant Pool

When running javap on a very simple HelloWorld application I have some confusion on the output around the constant pool. Test Code public class TestClass { public static void main(String[] args) ...
Andrew White's user avatar
  • 53.2k
10 votes
1 answer
887 views

javap and generics' type erasure

I am reading Herbert Schilds about type erasure in generics in java. Supposedly running javap on a class should give me the bytecode information about public, package protected and protected fields ...
B M's user avatar
  • 671
4 votes
1 answer
214 views

Problem marking the lines in the java compiler

I am a master's student and I am researching static analysis. In one of my tests I came across a problem in marking lines in the java compiler. I have the following java code: 226: String json = &...
Matheus Barbosa's user avatar
22 votes
5 answers
24k views

How do I print the class structures in a jar file using the javap tool?

I want to list the methods of the class files in the jar using the javap tool. How do I do it so that it lists the methods and members of all the class files in the jar. Right now I am able to do it ...
Prabhu R's user avatar
  • 14.1k
18 votes
5 answers
8k views

How to use javap with eclipse?

As the title states, I'm trying to use javap with eclipse but have difficulties setting it up. I'm trying to set it up using external tools from the run menu but can't find the correct Arguments: ...
guest's user avatar
  • 181
14 votes
1 answer
2k views

Private method not there when we do javap classname

Why a private method is not there when i use javap classname on console after compiling that java file? class A { private void one(){} public void two(){} protected void three(){} }
manish gupta's user avatar
12 votes
2 answers
14k views

Constructor Inside Inner Static Class in java?

I Wrote the following Code public class Reader1 { private int pageNumber; private class ReaderName1{ public int getPage(){ return pageNumber; } } static ...
Ankur Anand's user avatar
  • 3,896
52 votes
7 answers
11k views

What does "p" in "javap" stand for?

What does "p" in "javap" stand for? (The "c" in "javac" stands for compiler)
instantsetsuna's user avatar
33 votes
2 answers
5k views

How to learn about using scala.None from Java using javap?

In a previous question, Accessing scala.None from Java, it seems that people had used javap to figure out how to access scala.None from Java. I would like to know how they did that. FYI, the answer is:...
Mike Slinn's user avatar
  • 8,255
17 votes
1 answer
14k views

Java : javap ERROR:Could not find .class

In my system(Ubuntu 10.04) java is running fine but I am not able to run javap command I have complile Foo class and .class file path is locate at /home/mahesh/java/opt when I execute javap -c Foo....
mcacorner's user avatar
  • 1,272
9 votes
2 answers
1k views

Inner Class in Java

I was reading about Inner class in Learning Java. I found this code class Animal{ class Brain{ } } After compiling, javap 'Animal$Brain' gives output as Compiled from "Animal.java"class ...
Ashish Pani's user avatar
  • 1,011
5 votes
1 answer
1k views

Can javap show the original source code lines intermingled with the bytecode like objdump -S?

I know this debug information is contained in the .class file when compiling with: javac -g Main.java and can be observed manually from the LineNumberTable: section of: javap -c -constants -...
Ciro Santilli OurBigBook.com's user avatar
4 votes
4 answers
20k views

JDK installed but no javap?

I have the JDK 10.0.2 installed, have the cmd opened in the folder of the class files of my program and try the command: javap Simulation.class . I get the error that the command javap is not found. ...
Temerita's user avatar
  • 101

15 30 50 per page