Unable to start java.exe: 系统找不到指定的文件。

来源:互联网 发布:联合国贸易数据库 编辑:程序博客网 时间:2024/06/06 09:38

flashdevelop本来是可以使用的,但是为了使用android开发,我的是64位的,就把32的java sdk改成64的,flashdevelop调试时出现以下错误

Unable to start java.exe: 系统找不到指定的文件。

java.home=C:\Program Files\Java\jre8

解决方法

1、下载JRE环境安装,并记录下安装位置,如:C:\Program Files\Java\jre6
2、在Flex SDK所在目录Flex4.0.0\bin\找到jvm.config文件。
3、找到 java.home= 这一行 改为 java.home=C:\Program Files\Java\jre6  具体按照你本机java环境安装路径填写,保存jvm.config文件。
4、重启FlashDevelop,问题解决

################################################################################
##
##  ADOBE SYSTEMS INCORPORATED
##  Copyright 2007 Adobe Systems Incorporated
##  All Rights Reserved.
##
##  NOTICE: Adobe permits you to use, modify, and distribute this file
##  in accordance with the terms of the license agreement accompanying it.
##
################################################################################

#
# VM configuration
#
# Where to find JVM, if {java.home}/jre exists then that JVM is used
# if not then it must be the path to the JRE itself
#
# If no java.home is specified a VM is located by looking in these places in this
# order:
#
#  1) JAVA_HOME environment variables (same rules as java.home above)
#  2) bin directory for java.dll (windows) or lib/<ARCH>/libjava.so (unix)
#  3) ../jre
#  4) registry (windows only)
#

java.home=

# Arguments to VM

java.args=-Xmx384m -Dsun.io.useCanonCaches=false

# Environment variables we care about, whitespace-separated

 

改为下面

################################################################################
##
##  ADOBE SYSTEMS INCORPORATED
##  Copyright 2007 Adobe Systems Incorporated
##  All Rights Reserved.
##
##  NOTICE: Adobe permits you to use, modify, and distribute this file
##  in accordance with the terms of the license agreement accompanying it.
##
################################################################################

#
# VM configuration
#
# Where to find JVM, if {java.home}/jre exists then that JVM is used
# if not then it must be the path to the JRE itself
#
# If no java.home is specified a VM is located by looking in these places in this
# order:
#
#  1) JAVA_HOME environment variables (same rules as java.home above)
#  2) bin directory for java.dll (windows) or lib/<ARCH>/libjava.so (unix)
#  3) ../jre
#  4) registry (windows only)
#

java.home=C:\Program Files\Java\jre8

# Arguments to VM

java.args=-Xmx384m -Dsun.io.useCanonCaches=false

# Environment variables we care about, whitespace-separated

 

大家看到

java.home=这里是空的,加上去成了java.home=C:\Program Files\Java\jre8重启flashdevelop后就可使用。

 

 

0 0
原创粉丝点击