Questions tagged [javap]
javap - The Java Class File Disassembler
javap
23
questions
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 ...
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 ...
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) ...
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 ...
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 = &...
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 ...
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: ...
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(){}
}
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 ...
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)
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:...
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....
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
...
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 -...
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. ...