Jump to content
  • Advertisement
Sign in to follow this  

Java decompiling with Mocha

This topic is 4039 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I recently downloaded Mocha to try and use it on one of my own class files (to see what all the hype is about) and am having some bizarre command prompt errors. The Mocha docs specify that you need not unzip the contents of maocha-b1.zip to use the program. All you need to do is put a copy of the class file (to decompile) inside the same directory as the zip, and run mocha from the command line. Doing a little research I found the "best" way to run mocha is to navigate to the zip directory in Command Prompt and enter the following command: java -classpath %CLASSPATH% mocha.Decompiler -v myClass.class Where "myClass.class" is the class file to decompile. I entered everything as you see above. I am getting "class definition not found" errors, and don't understand.... could the mocha docs be wrong?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!