javac无法运行,而且似乎未安装 [英] javac cannot be run, and furthermore does not seem installed
问题描述
我在设置Java时遇到问题.
我已经安装了JRE,将其路径添加到了PATH
,并设置了JAVA_HOME
和CLASSPATH
.现在,java
和javacpl
可以正常工作,但是运行javac
会生成命令未找到的错误.此外,JRE的bin
文件夹中甚至似乎都不存在javac.exe
.
我如何运行javac
?
JRE只是 Java运行时环境,它仅包含运行已编译的Java程序所需的基础结构.>
要使用javac
编译Java源代码,您需要 Java开发工具包(JDK).
在Oracle的 Java下载页面上,选择标有"JDK".
I have a problem involving setting up Java.
I have installed the JRE, added its path to PATH
, and set JAVA_HOME
and CLASSPATH
. Now, java
and javacpl
work fine, but running javac
generates a command-not-found error. Furthermore, javac.exe
does not even seem to exist in the JRE's bin
folder.
How do I run javac
?
The JRE is merely the Java Runtime Environment, which includes only the infrastructure needed to run Java programs that are already compiled.
To compile Java source code using javac
, you need the Java Development Kit (JDK).
On Oracle's Java download page, choose the package labelled "JDK".
这篇关于javac无法运行,而且似乎未安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!