Java compilation error javac: file not found

Asked 2 years ago, Updated 2 years ago, 23 views

When you say javac Hello.java, the following results come out It's not a text file. It's definitely a file location. The file's name is Hello.java I don't know what's wrong.

C:\Temp>javac Hello.java
javac: file not found: Hello.java
Usage: javac <options> <source files>
use -help for a list of possible options

java

2022-09-21 12:46

1 Answers

It is certain that the file is in the current path, and if the file name is not wrong, check if it is not Hello.java.txt and if not,

https://stackoverflow.com/questions/20587840/javac-file-not-found-first-java-usage-javac-options-source-files


2022-09-21 12:46

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.