Adarsh H D Dev
Adarsh H D Dev

Reputation: 618

"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

Upvotes: 0

Views: 141

Answers (1)

xingbin
xingbin

Reputation: 28289

Use java first to execute, javac is for compile.

Upvotes: 1

Related Questions