Questions tagged [javap]

javap - The Java Class File Disassembler

javap - The Java Class File Disassembler:

The javap command disassembles one or more class files. Its output depends on the options used. If no options are used, javap prints out the package, protected, and public fields and methods of the classes passed to it. javap prints its output to stdout.

124 questions
-1
votes
1 answer

Object.clone() in javap when using covariant return types in Java

I am reading about covariant return types in Java. I wrote the following code: A parent class: package other; public class Super implements Cloneable { @Override public Super clone() throws CloneNotSupportedException { return…
Maksim Dmitriev
  • 5,985
  • 12
  • 73
  • 138
-1
votes
3 answers

Can we create .java file using javap dissembler

Can we regenerate .java file from .class file using javap tool of jdk? I used javap classsfile command, it just prints .java file with data member and member functions declaration. If not then what are the appropriate methods to accomplish it...
Anurag Sharma
  • 241
  • 1
  • 4
  • 13
-2
votes
1 answer

I am trying javap -p classname on scala class but getting error in REPL

scala> class Department( val departmentId: Int, val departmentName: String) defined class Department scala> javap -p Department :12: error: not found: value javap javap -p Department ^ :12: error: not found: value p …
-2
votes
5 answers

.java file path to class name

What's the most efficient way of getting the class(es) created on a .java file? I have the .java file path and I need to get the class full name. I can only remember: Compile it with JavaCompiler Using the file text to parse it with Eclipse…
rnunes
  • 2,785
  • 7
  • 28
  • 56
1 2 3
8
9