[英]New to java 1.8.0_73 - Javac command not recognized
When I try to compile a .java file, it says "Command javac not found." 当我尝试编译.java文件时,它显示“找不到命令javac”。
I've done a fresh install of Java using an installer downloaded from their website. 我已经使用从他们的网站下载的安装程序完成了Java的全新安装。 I've tried the solution on all of the other posts that says to check my path, but it already includes "C:\\Program Files (x86)\\Java\\jre1.8.0_73\\bin;" 我已经在其他所有尝试检查我的路径的帖子上尝试了该解决方案,但是它已经包括“ C:\\ Program Files(x86)\\ Java \\ jre1.8.0_73 \\ bin;”。 which contains which looks like a ton of utilities - except, there's no javac executable. 其中包含看起来像大量的实用程序-除非没有javac可执行文件。
I searched my C drive with File Explorer, and couldn't find it anywhere. 我使用文件资源管理器搜索了C盘,但在任何地方都找不到它。 I've installed and reinstalled, so I think I might just be looking for the wrong thing to compile my programs. 我已经安装并重新安装了,所以我想我可能只是在寻找错误的东西来编译我的程序。 Please help! 请帮忙!
You have installed the java jre . 您已经安装了java jre 。 You need to install the jdk . 您需要安装jdk 。
The jre (java runtime environment) contains the files needed to run java. jre (Java运行时环境)包含运行Java所需的文件。
The jdk (java development kit) includes the jre and also all the development utilities. jdk (Java开发工具包)包括jre以及所有开发实用程序。
Go to the download page , and select the jdk . 转到下载页面 ,然后选择jdk 。
I had the same problem and with jdk-8u73-windows-i586.exe from the Oracle downloads page - it installed a JRE and no JDK. 我有同样的问题,并且在Oracle下载页面上使用jdk-8u73-windows-i586.exe-它安装了JRE,但没有安装JDK。 Solved the issue by downloading jdk-8u74-windows-x64.exe, which installed both a JRE and a JDK. 通过下载jdk-8u74-windows-x64.exe解决了该问题,该文件同时安装了JRE和JDK。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.