2

I'm trying to view a java class file in Notepad++ or Notepad, it was in a .jar file and I unzipped it, and it has characters like NUL and DC1 and DC2 and SOH and other "gibberish" looking characters...is there a way to fix/avoid this?

2 Answers 2

7

Class files are binary files compiled from source code. They're not supposed to be human readable. You want to find the .java source files used to create them if you want to read the code.

Or use a Java decompiler to revert the class files back into source code.

Sign up to request clarification or add additional context in comments.

Comments

0

Class files are binary, not text. They're not supposed to look correct in a text editor.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.