简体   繁体   English

Java 1.8.0_73的新功能-无法识别Javac命令

[英]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.

相关问题 在aarch64 Odroid C2上的Java 1.8.0_73上运行WebStorm-143.382.36在libjnidispatch.so上失败 - Running WebStorm-143.382.36 on Java 1.8.0_73 on aarch64 Odroid C2 fails on libjnidispatch.so C:\\ Program Files \\ Java \\ jdk1.8.0_131 \\ javac.exe“'无法识别为内部或外部命令 - C:\Program Files\Java\jdk1.8.0_131\javac.exe"' is not recognized as an internal or external command 可以识别Java但不能识别Javac - Java is recognized but Javac is not recognized javac无法识别的命令 - javac not recognized command javac不承认java 7 - javac not recognized java 7 javac无法识别为内部或外部命令 - javac not recognized as an internal or external command 'javac'未被识别为内部或外部命令 - 'javac' is not recognized as an internal or external command javac 1.8.0_45和javac 1.8.0_92之间的Java类型推断差异? - Java type inference differences between javac 1.8.0_45 and javac 1.8.0_92? Java 路径问题,'java' 不被识别为内部或外部命令、可运行程序或批处理文件。 (javac也是) - Java path problems, 'java' is not recognized as an internal or external command, operable program or batch file. (javac too) 在Windows 7中,javac不被识别为内部或外部命令 - javac is not recognized as an internal or external command in windows 7
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM