Home  >  Article  >  Java  >  How to solve the problem that javac cannot find the java file

How to solve the problem that javac cannot find the java file

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-12-27 12:00:165208browse

How to solve the problem that javac cannot find the java file

An error occurred:

How to solve the problem that javac cannot find the java file

Solution:

1. First enter the directory where the java file is located;

How to solve the problem that javac cannot find the java file

Use cd folder\folder\......\;

The directory where the editor's file is located is: eclipse-workspace\word.project\src\word;

How to solve the problem that javac cannot find the java file

2. After entering the directory, enter the javac file name .java is enough:

How to solve the problem that javac cannot find the java file

# Compiled successfully.

Summary:

(1) First enter the directory where the java file is located; use cd package\package...\ to enter.

(2) After entering the directory, enter javac file name.java.

PHP Chinese website has a large number of free JAVA introductory tutorials, everyone is welcome to learn!

The above is the detailed content of How to solve the problem that javac cannot find the java 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

Related articles

See more