Aptana 在 Windows XP 中创建 jvm 失败
我正在尝试在 winXP 计算机上安装 Aptana studio 3。尽管它已安装 Java(通过命令行中的 java -version 验证),但当我运行 Aptana 时,它显示:无法创建 Java 虚拟机并且程序退出。
网上搜索似乎这是一个常见问题,也许必须更改 .ini 文件?大家有成功的经验吗?
I am trying to install Aptana studio 3 on a winXP machine.Alothough it has Java installed (verified by java -version in command line) when I run Aptana it says : Failed to create Java Virtual Machine and program exits.
Searching the web seems this is a common problem and .ini file has to be changed maybe? Anyone has a successful experience?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
到目前为止,我还没有完美的调整,但我确实设法让它运行并通过阅读一些与 Eclipse 相关的好答案来延迟崩溃:
Eclipse 的最佳 JVM 设置是什么?
还有这个(虽然是关于 win7 64):
Eclipse 的最佳 JVM 设置是什么在 Windows 7 64 位上?
这让我想到了这一点:
http ://blog.juma.me.uk/2008/10/14/32-bit-or-64-bit-jvm-how-about-a-hybrid/
您需要进入AptanaStudio3 目录并将 AptanaStudio3.ini 文件更改为更适合您的系统和 JRE 版本的 JVM 设置。对于像我这样没有 Java 编码背景的人来说,我猜你也是这样,这是非常不直观的。因此,遵循指南非常有必要,而且由于似乎没有特定于 aptana 的指南,因此最好遵循 eclipse 的指南,因为 aptana 是基于 eclipse 代码库构建的。
我会特别尝试更改设置,例如“-Xmx”、“-Xms”,谁知道呢,甚至可能尝试“--XX:+UsecompressedOops”(不是“答案”,只是似乎对某些人有用其他 stackoverflow 用户,尽管使用不同的 Windows 配置)。
I don't have the perfect tweaks as of yet, but I did manage to get it to run and delay its crashes by reading a few good answers related to Eclipse here:
What are the best JVM settings for Eclipse?
And this (though it's about win7 64):
What are the best JVM settings for Eclipse on windows 7 64 bit?
Which led me to this:
http://blog.juma.me.uk/2008/10/14/32-bit-or-64-bit-jvm-how-about-a-hybrid/
You need to go into the AptanaStudio3 directory and change the AptanaStudio3.ini file to JVM settings that work better for your system and version of JRE. For someone like me, and I'm guessing you, who has no Java coding background, this is extremely unintuitive. So it's pretty much necessary to follow a guide and since there don't seem to be aptana-specific guides, it's best to follow along with the eclipse ones, since aptana is built off the eclipse code base.
I'd try in particular to change the settings, e.g. "-Xmx", "-Xms" and who knows, maybe even try the "--XX:+UseCompressedOops" (not an 'answer' just seems to have worked for some other stackoverflow users, though on different windows configs).