简体   繁体   English

Mac OS X上的JDK / JRE 7 10.7.3 lion vbox guest,libjvm.dylib插件错误

[英]JDK/JRE 7 on mac os x 10.7.3 lion vbox guest, libjvm.dylib plug-in error

I'm getting libjvm.dylib crash when launching swing/awt based java apps on my mac os x virtualbox guest. 我在我的mac os x virtualbox guest上启动基于swing / awt的java应用程序时遇到libjvm.dylib崩溃。 I'm not sure why is this happening. 我不确定为什么会这样。 I was able to install the jdk on the guest, java -version java version "1.7.0_15" Java(TM) SE Runtime Environment (build 1.7.0_15-b03) Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode) 我能够在guest java -version java version "1.7.0_15" Java(TM) SE Runtime Environment (build 1.7.0_15-b03) Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)上安装jdk, java -version java version "1.7.0_15" Java(TM) SE Runtime Environment (build 1.7.0_15-b03) Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

Here's the log when I tried to open Java control panel. 这是我尝试打开Java控制面板时的日志。 http://pastebin.com/vHFWKeEk http://pastebin.com/vHFWKeEk

host specs: AMD Athlon(tm) 7750 3072MB RAM ATI Radeon HD 5550

The reason for this error is that there is a compatibility issue preventing the Java 7 runtime from launching on OS X platforms lacking hardware-accelerated OpenGL support, including OS X VMware virtual machines running on Fusion and ESXi. 出现此错误的原因是存在兼容性问题,导致Java 7运行时无法在缺乏硬件加速OpenGL支持的OS X平台上启动,包括在Fusion和ESXi上运行的OS X VMware虚拟机。 The same applies for Virtualbox. 这同样适用于Virtualbox。

Here you find a binary patch that solves the issue. 在这里,您可以找到解决问题的二进制补丁。 But attention, the provided patch only fixes the mentioned bug for the browser plugin! 但是注意,提供的补丁只修复了浏览器插件中提到的错误! If you want to use the JRE/JDK for development purposes or to run SWT/AWT applications in your Mac OSX guest system, use the following script: 如果要将JRE / JDK用于开发目的或在Mac OSX来宾系统中运行SWT / AWT应用程序,请使用以下脚本:

VMware-Java7-patch.py VMware-Java7-patch.py

If you installed another version than the current JDK/JRE 7 Update 21, please edit the second last line of the Python script to point to your current JDK version (change jdk1.7.0_21.jdk to whatever version/directory you have currently installed on your system): 如果您安装的是另一个版本而不是当前的JDK / JRE 7 Update 21,请编辑Python脚本的倒数第二行以指向您当前的JDK版本(将jdk1.7.0_21.jdk更改为您当前安装的任何版本/目录你的系统):

patchLibLwAwt("/Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/jre/lib/lwawt/liblwawt.dylib") patchLibLwAwt( “/库/的Java / JavaVirtualMachines / jdk1.7.0_21.jdk /内容/首页/ JRE / lib目录/ lwawt / liblwawt.dylib”)

Finally run the script by typing "sudo python ./VMware-Java7-patch.py" to your terminal/console. 最后通过在终端/控制台输入“sudo python ./VMware-Java7-patch.py​​”来运行脚本。

This should do the trick and Java applications now should run without problems, without restarting your system. 这应该可以解决问题,Java应用程序现在可以毫无问题地运行,无需重新启动系统。 This patch works for VMWare and Virtualbox. 此修补程序适用于VMWare和Virtualbox。

Best regards. 最好的祝福。

If your error is related to JVM you have not installed JVM, or the path is missing for JVM, 如果您的错误与JVM有关,那么您没有安装JVM,或者JVM缺少路径,

File Structure of JDK and JRE link JDK和JRE link文件结构

this will state that if you do not have JVM installed you do not have the libjvm.dylib file installed. 这将说明如果您没有安装JVM,则不会安装libjvm.dylib文件。

I am still not sure that is the main reason, but that may be one of the reason.. 我仍然不确定这是主要原因,但这可能是其中一个原因..

Please check the path also, and read this old post 请检查路径,并阅读这篇old post

this post states that 'You could register just a JRE within Eclipse because it is enough to run your program, but again a JVM will allow for more operations.' 这篇文章指出'你可以在Eclipse中注册一个JRE,因为它足以运行你的程序,但JVM将允许更多的操作。

So if swing/awt is advanced and dependent on jvm like in the older post in case of eclipse. 因此,如果swing / awt是高级的并且依赖于jvm,就像日食中的旧帖子一样。

I am not Advance Java User, so not master in AWT/SWING.. :) 我不是高级Java用户,所以不是AWT / SWING中的高手.. :)

But one more thing I would like to add, it has option of memory overcommit, you must disable that as that causes problem, for crash link1 read this blog for details. 但是我想补充一点,它有内存过量使用的选项,你必须禁用它,因为这会导致问题,因为崩溃link1阅读此博客了解详细信息。 I found this details here link2 我在这里发现了这个细节link2

I hope this will do :) 我希望这会:)

I am running the same configuration and my VM was very slow. 我运行相同的配置,我的VM非常慢。 I have an Intel i7 processor which features the VT-x technology (Intel Virtualization Technology). 我有一个采用VT-x技术(英特尔虚拟化技术)的英特尔i7处理器。 AMD has a similiar feature called AMD-v. AMD有一个类似AMD-v的类似功能。 Be sure to activate that feature in your BIOS if available - it gives you notable performance boost. 请确保在BIOS中激活该功能(如果可用) - 它可以显着提升性能。

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

相关问题 Mac OS X上的64位libjvm.dylib - 64bit libjvm.dylib on Mac OS X 在Mac OS X中链接动态库(libjvm.dylib)(rpath问题) - Linking a dynamic library (libjvm.dylib) in Mac OS X (rpath issue) 使用libjvm.dylib插件时,Java控制面板意外退出。 MacOSX - Java Control Panel quit unexpectedly while using the libjvm.dylib plug-in | MacOSX 无法在 libjvm.dylib (Mac OS) 中找到方法 JNI_GetCreatedJavaVMs - Failed to locate method JNI_GetCreatedJavaVMs in the libjvm.dylib (Mac OS) 如何在Mac OS X Lion(10.7.3)上安装PhoneGap? - How to install PhoneGap with Mac OS X Lion(10.7.3)? Mac OS X 10.8 Mountain Lion上安装了Oracle(Sun)的JDK / JRE在哪里? - Where is Oracle's (Sun's) JDK/JRE installed on Mac OS X 10.8 Mountain Lion? Flyway - MacOs 中的 libjvm.dylib 问题 - Flyway - libjvm.dylib issue in MacOs 测试在我的Ubuntu pc上运行,但不在我的Mac OS X Lion 10.7.3,Ruby 1.9.3,Rails 3.2.1上运行 - Tests are running on my Ubuntu pc, but not on my Mac OS X Lion 10.7.3, Ruby 1.9.3, Rails 3.2.1 Mac OS X上基于Processor Expert eclipse的插件错误 - Processor Expert eclipse-based plug-in error on Mac OS X 我在Lion(Mac OS X 10.7.3)上安装了Xcode 4,但仍未找到“make”命令 - I installed Xcode 4 on Lion (Mac OS X 10.7.3) but the “make” command is still not found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM