简体   繁体   中英

“File Not found” while trying to execute java file on MacBook Pro

Am trying to execute a java method, am having my java first.java which I compiled using javac first.java , After which a class file got created in the same path but when I tried executing the class file using command javac first.class it throws error saying file not found . Any idea by the way I have both JDK and JRE in the path variable. Am using java 1.8

java first使用java first执行, javac用于编译。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM