> How to open class file with java?

How to open class file with java?

Posted at: 2014-12-18 
Hi there,

I assume you meant how does one open a .class file? Java is a programming language, whereas the Java Virtual Machine (JVM) essentially executes the .class files.

To execute a Java program, open your command console, navigate to the directory/folder where the .class file is located, and then execute the command: java (e.g., java myjavaprogram)

Anyway, if you meant reading/editing .class files, technically, .these can be opened using any text editor, but the contents would not be human-readable. You'll need a decompiler for that kind of task. There's the Java Class File Editor available on sourcefourge. Here's the link: http://sourceforge.net/projects/classedi...

Cheers!