Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 11
    By default private methods are not included. Use -p to include them as well. Commented Feb 24, 2016 at 16:40
  • 2
    For me only worked with the file name (extension seems to be optional though), but not with the fully qualified class name: javap -c -p MyClass.class Commented Feb 22, 2018 at 12:29
  • 1
    javap -c com.mypackage.MyClass will print the code on the terminal(stdout). I prefer javap -c -p com.mypackage.MyClass >> com.mypackage.MyClass.txt to see the code in a file. Commented Jun 15, 2018 at 17:21