Why can't I see java .class files properly


#1

I tried opening some java .class files with atom, but all I saw was a whole load of unreadable nonsense. Can anyone help. Would be great.


#2

Java .class files are compiled binaries intended to be loaded by the JVM, not read by humans. How do you believe Atom should handle them?


#3

Yes, but where there’s a .class file, there is usually also a .java file (the latter being the one you want to open).
Depending on your build steps and/or IDE, this may be elsewhere. Quite often you find that all .java files are under a src folder, while the compiled .class files get put in some dist or build or other target folder where compiled output goes.