Convert .class to .java

前端 未结 3 676
野性不改
野性不改 2020-12-03 02:54

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

3条回答
  •  感情败类
    2020-12-03 03:20

    This is for Mac users:

    first of all you have to clarify where the class file is... so for example, in 'Terminal' (A Mac Application) you would type:

    cd
    

    then wherever you file is e.g:

    cd /Users/CollarBlast/Desktop/JavaFiles/
    

    then you would hit enter. After that you would do the command. e.g:

    cd /Users/CollarBlast/Desktop/JavaFiles/ (then i would press enter...)

    Then i would type the command:

    javap -c JavaTestClassFile.class (then i would press enter again...)

    and hopefully it should work!

提交回复
热议问题