[英]“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 . 我试图执行一个Java方法,让我的java first.java使用
javac first.java
进行javac first.java
,然后在同一路径中创建了一个类文件,但是当我尝试使用javac first.class
命令执行该类文件时,抛出错误,指出找不到文件 。 Any idea by the way I have both JDK and JRE in the path variable. 顺便说一句,我在path变量中同时拥有JDK和JRE。 Am using java 1.8
我正在使用Java 1.8
java first
使用java first
执行, javac
用于编译。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.