Home >Java >javaTutorial >How to solve the problem that javac cannot find the java file
An error occurred:
Solution:
1. First enter the directory where the java file is located;
Use cd folder\folder\......\;
The directory where the editor's file is located is: eclipse-workspace\word.project\src\word;
2. After entering the directory, enter the javac file name .java is enough:
# 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!