gpt4 book ai didi

java - 另一个 '"java.exe"' 不被识别为内部或外部命令

转载 作者:行者123 更新时间:2023-11-29 09:05:57 24 4
gpt4 key购买 nike

由于我已经为这个问题苦苦挣扎了两个多小时,所以我拼命地发布这个问题,

当我尝试在 FlashDevelop 中构建 NME 项目时,出现此错误:

Running process: C:\Program Files (x86)\FlashDevelop\Tools\fdbuild\fdbuild.exe "C:\Users\KETAB\Desktop\SplashScreen\SplashScreen.hxproj" -ipc 41740bf7-6aa9-4825-9b1d-a8450386e5ad -version "2.10" -compiler "C:\Motion-Twin\Haxe" -library "C:\Program Files (x86)\FlashDevelop\Library" -target "android"
Building SplashScreen
haxelib run nme build C:\Users\KETAB\Desktop\SplashScreen\application.nmml android -debug
haxelib run hxcpp Build.xml haxe -Ddebug -Dandroid -Dcpp -Ddebug -Dhaxe_208 -Dhaxe_209 -Dhaxe_210 -Dmobile -Dnme -Dnme_install_tool -Dsys -Dtrue
'"java.exe"' is not recognized as an internal or external command,
operable program or batch file.
Build halted with errors (haxelib.exe).

虽然,在终端中,如果我输入 java,我会得到友好的帮助行..

C:\Users\KETAB>java
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-server to select the "server" VM
-hotspot is a synonym for the "server" VM [deprecated]
The default VM is server.

-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose:[class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -no-jre-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions with specified granularity
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions with specified granularity
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument

-splash:<imagepath>
show splash screen with specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for m
ore details.

我已经在环境变量中试过了:

PATH C:\Program Files (x86)\Java\jdk1.7.0_13\bin
JAVA_HOME C:\Program Files (x86)\Java\jdk1.7.0_13

为什么我可以在终端内调用 java,而 FlashDevelop 却说它不被识别为内部或外部命令?

有人可以帮忙吗?

最佳答案

我通过安装 Java Runtime 32 解决了这个问题,这在使用 FlashDevelop 时很重要

关于java - 另一个 '"java.exe"' 不被识别为内部或外部命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15063718/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com