尝试使用jGRASP进行编译时出现错误,不确定如何修复

时间:2020-10-01 14:26:36

标签: java jgrasp

我最近从Highschool进入编程领域,并开始使用jGRASP。当我尝试编译代码时,将其作为输出。

 ----jGRASP exec: javac -g AsciiBox.java
 ----jGRASP wedge error: command "javac" not found.
 ----   This command must be in the current Working directory
 ----   or on the current PATH to use this function.
 ----   working directory is "D:\Java\AsciiBox".
 ----   PATH is ";C:\Program Files (x86)\Java\jre1.8.0_261\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Razer\ChromaBroadcast\bin;C:\Program Files\Razer\ChromaBroadcast\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\Users\Iseic\AppData\Local\Microsoft\WindowsApps;".
 ----   
 ----   Make sure you have the full JDK, not just the JRE, installed.
 ----   The JDK is available from https://www.oracle.com/technetwork/java/index.html.
 ----jGRASP: operation complete.

不太确定如何解决它,但是当我尝试下载JDK时,它不起作用。我单击它,没有任何下载。

1 个答案:

答案 0 :(得分:0)

jGRASP不知道在哪里寻找Java编译器。必须知道javac.exe的位置,例如通过环境变量进行设置。

如果无法下载Oracle JDK,则可以研究Corretto之类的OpenJDK解决方案。

相关问题