Sign in to follow this  

Java decompiling with Mocha

This topic is 3729 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

This topic is 3729 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this