Questions tagged [javap]
javap - The Java Class File Disassembler
javap
125
questions
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:...
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) ...
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 ...
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 ...
18
votes
2
answers
7k
views
Add tools.jar in the classpath of sbt project
The ':javap' command in the scala 2.9.1 console need the tools.jar (from JDK6) in the 'classpath'. From cmd-line it could be done with '-cp' argument or CLASSPATH environment variable.
How to do the ...
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: ...
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....
15
votes
1
answer
6k
views
Use javap to get method signatures in for Android Activity
When I write in command line javap -s java.awt.Label, I succesfully get signatures for Label. Now I want to get signatures for Android Activity class. But if I write javap -s android.app.activity it ...
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(){}
}
13
votes
1
answer
2k
views
How do I alias the scala setter method 'myvar_$eq(myval)' to something more pleasing when in java?
I've been converting some code from java to scala lately trying to teach myself the language.
Suppose we have this scala class:
class Person() {
var name:String = "joebob"
}
Now I want to access ...
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 ...
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 ...
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
...
7
votes
1
answer
945
views
Enum disassembled with javap doesn't show constructor arguments
When I disassemble an enum with javap, the enum's implicit constructor arguments seem to be missing, and I can't figure out why.
Here's an enum:
enum Foo { X }
I compile and disassemble this (on ...