How to compile java into a class file:
1. Open cmd and enter the bin directory of the jdk installation,
2, then find the Java file to be compiled. My Java file is in E:\workspaces\portal_one\JUnit_Test\src\main\java\com\baidu\test\dome\loader\Test.java;
Use the command Javac E:\workspaces\portal_one\JUnit_Test\src\main\java\com\baidu\test\dome\loader\Test.java
3. Test.class will appear File
#For more java knowledge, please pay attention to the java basic tutorial column.
The above is the detailed content of How to compile java into class file. For more information, please follow other related articles on the PHP Chinese website!