Home >Java >JavaBase >How to compile java into class file

How to compile java into class file

尚
Original
2019-12-28 14:03:298629browse

How to compile java into class file

How to compile java into a class file:

1. Open cmd and enter the bin directory of the jdk installation,

How to compile java into class file

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

How to compile java into class 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn