Home > Java > JavaBase > body text

How to compile java into class file

Release: 2019-12-28 14:03:29
Original
8598 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!