.CLASS 文件扩展名
Java Class File
| 开发者 | Oracle |
| 受欢迎程度 |
4.2 | 903 票 |
什么是 CLASS 文件?
A CLASS file is a compiled .JAVA file created by the Java compiler. It contains bytecode, which is binary program code that is executable when run by a Java Virtual Machine (JVM). CLASS files are commonly bundled into .JAR files, which are included in the $CLASSPATH environment variable for execution.
更多信息
CLASS files can be compiled from JAVA files using the javac command, which is included with a JVM installation. Many Java IDEs, such as Eclipse, can compile CLASS files on the fly as developers write program code.
Since there are multiple versions of the JVM (e.g., 1.4, 1.5, and 1.6), some CLASS files may not be compatible with certain JVM versions. The Java Runtime Environment (JRE) can execute CLASS files, but it cannot compile them since it does not include the javac binary.
注: Oracle acquired Sun Microsystems, the original developer of Java. The JRE and JVM are often used synonymously to refer to the platform that runs Java applications.