简体   繁体   English

Adobe Flash Builder 4.7启动失败,并显示“无法创建Java虚拟机”

[英]Adobe Flash Builder 4.7 Startup Failed with “Failed to create the Java Virtual Machine”

When I try to start Adobe Flash Builder 4.7, it keeps giving me the following error: 当我尝试启动Adobe Flash Builder 4.7时,它一直显示以下错误:

Failed to create the Java Virtual Machine

Before it was working perfectly. 在它完美运行之前。 The problem started to occur after I set up my MacOSX for a new project. 在为新项目设置MacOSX之后,该问题开始出现。 But I didn't change any *.ini file in the Adobe Flash Builder 4.7 installation directory. 但是我没有更改Adobe Flash Builder 4.7安装目录中的任何* .ini文件。

I Googled a lot, everyone gave the similar answer: change the *.ini files. 我用Google搜索了很多,每个人都给出了类似的答案:更改* .ini文件。 I found 3 files: 我发现了3个文件:

/Applications/Adobe Flash Builder 4.7.app/Contents/MacOS/Adobe Flash Builder 4.7.ini
/Applications/Adobe Flash Builder 4.7.app/Contents/MacOS/Adobe Flash Builder 4.ini
/Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse.ini

I tried to change the following values as instructed: 我尝试按照指示更改以下值:

-Xms512m
-Xmx1024m
-XX:MaxPermSize=256m
-XX:PermSize=64m

But not working at all. 但根本不起作用。 So what values are you guys using if my physical memory is 4GB? 那么,如果我的物理内存为4GB,你们使用什么值? (my MacOSX has 4GB memory). (我的MacOSX具有4GB内存)。

BTW, I did (re)install Java when setting up my MacOSX for a new project, and here is my java info: 顺便说一句,在为新项目设置MacOSX时,我确实(重新)安装了Java,这是我的Java信息:

[plee@pleemac ~]$ which java
/usr/bin/java
[plee@pleemac ~]$ java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
[plee@pleemac ~]$ 

This is ridiculous! 这是荒唐的! But I'm not sure. 但是我不确定。 It seems Adobe Flash Builder 4.7 does NOT support Java 1.7. 看来Adobe Flash Builder 4.7不支持Java 1.7。

After I install Apple's Java 1.6 from: http://support.apple.com/kb/DL1572?viewlocale=en_US 从以下位置安装Apple的Java 1.6后: http : //support.apple.com/kb/DL1572?viewlocale=zh_CN

I am able to open Adobe Flash Builder 4.7. 我可以打开Adobe Flash Builder 4.7。

Hmmm, now I need to install Java 1.7 in a very special way for my new project. 嗯,现在我需要以非常特殊的方式为新项目安装Java 1.7。 Actually I don't know how. 其实我不知道如何。 But Thank god, I finally could use my Adobe Flash Builder 4.7 again! 但是,谢天谢地,我终于可以再次使用Adobe Flash Builder 4.7!

I have a solution on Sierra for Flash Builder 4.6 : I'm just set JAVA_HOME environment to java 1.6 我在Sierra上有针对Flash Builder 4.6的解决方案:我只是将JAVA_HOME环境设置为Java 1.6

install java 1.6 from here: https://support.apple.com/kb/DL1572 从此处安装Java 1.6: https : //support.apple.com/kb/DL1572

from terminal: cd /Applications/Adobe\\ Flash\\ Builder\\ 4.6/eclipse/Eclipse.app/Contents/MacOS/ export JAVA_HOME="$(/usr/libexec/java_home -v 1.6)" ./eclipse It works for me. 从终端: cd /Applications/Adobe\\ Flash\\ Builder\\ 4.6/eclipse/Eclipse.app/Contents/MacOS/ export JAVA_HOME="$(/usr/libexec/java_home -v 1.6)" ./eclipse对我cd /Applications/Adobe\\ Flash\\ Builder\\ 4.6/eclipse/Eclipse.app/Contents/MacOS/ export JAVA_HOME="$(/usr/libexec/java_home -v 1.6)" ./eclipse

I was having the same issue. 我有同样的问题。 I started eclipse from the terminal (see below) and saw that the JavaVM was complaining about a library from an old version 1.7JDK. 我从终端开始eclipse(请参见下文),发现JavaVM抱怨旧版本1.7JDK中的库。 When I Looked in /Library/Java/JavaVirtualMachines I saw that after performing updates on the JDK, the old installs (and updates) were still installed. 当我在/ Library / Java / JavaVirtualMachines中查看时,我发现在JDK上执行更新后,仍会安装旧的安装(和更新)。 I uninstalled all JDK installation folders except for the most recent. 除了最新版本,我卸载了所有JDK安装文件夹。 See Oracle site for uninstall instructions (you basically just delete them) http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html 请参阅Oracle网站以获取卸载说明(您基本上只需删除它们) http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html

To open Eclipse from terminal, enter: cd /Applications/Adobe\\ Flash\\ Builder\\ 4.7/eclipse/Eclipse.app/Contents/MacOS/ 要从终端打开Eclipse,请输入:cd / Applications / Adob​​e \\ Flash \\ Builder \\ 4.7 / eclipse / Eclipse.app / Contents / MacOS /

then enter: ./eclipse 然后输入:./eclipse

我刚刚从这里安装了Java 1.6: https//support.apple.com/kb/DL1572,MacOS Mojave上的FlashBuilder 4.6再次起作用。

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

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