Convert. Class To. Java

I have some .class files that I need to convert to .java so I did:

javap -c ClassName.class

and all the time I have the same error

ERROR:Could not find ClassName.class

Do you guys have any idea of what might be the cause? I did man javap and as far as I know, the syntax is correct. If there is another way to convert it to a .java file, I am more than willing to try.

2

4 Answers

Invoking javap to read the bytecode

The javap command takes class-names without the .class extension. Try

javap -c ClassName
Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.