简体   繁体   English

使用Path解决方案后,我无法获得命令提示符以读取Javac命令。 (Windows 8.1 64位)

[英]I can't get my Command Prompt to read javac commands after using the Path solution. (Windows 8.1 64bit)

I keep getting the reading: 我不断阅读:

'javac' is not recognized as an internal or external command, operable program or batch file

Here is my current Path with java included: 这是我当前包含java的路径:

C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;
C:\ProgramData\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;
C:\Program Files (x86)\Windows Live\Shared;
C:\Program Files (x86)\GtkSharp\2.12\bin;
C:\Program Files (x86)\Java\jre1.8.0_91\bin

Not sure what I am missing. 不知道我在想什么。 I have restarted my computer as well. 我也重新启动了计算机。 Any suggestions? 有什么建议么? To be clear I am a first semester CS Student with 0 experience, so I might not understand certain terminology. 明确地说,我是第一学期CS学生,拥有0经验,所以我可能不理解某些术语。

You have included JRE : 您已包括JRE

C:\Program Files (x86)\Java\jre1.8.0_91\bin

You must include JDK like: 您必须像这样包含JDK

C:\Java\jdk1.8.0_181\bin

Your path includes C:\\Program Files (x86)\\Java\\jre1.8.0_91\\bin - it's JRE (runtime). 您的路径包括C:\\Program Files (x86)\\Java\\jre1.8.0_91\\bin它是JRE(运行时)。 javac is a program from JDK (development kit). javac是JDK(开发套件)中的程序。 JRE is a part of of JDK, not vice versa. JRE是JDK的一部分,反之亦然。

Download and install JDK (or check does it exists something like C:\\Program Files (x86)\\Java\\jdk1.8.0_91\\bin ) 下载并安装JDK(或检查它是否存在C:\\Program Files (x86)\\Java\\jdk1.8.0_91\\bin

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM