Reputation: 325
I'm getting libjvm.dylib crash when launching swing/awt based java apps on my mac os x virtualbox guest. 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)
Here's the log when I tried to open Java control panel. http://pastebin.com/vHFWKeEk
host specs:
AMD Athlon(tm) 7750
3072MB RAM
ATI Radeon HD 5550
Upvotes: 1
Views: 886
Reputation: 701
I am running the same configuration and my VM was very slow. I have an Intel i7 processor which features the VT-x technology (Intel Virtualization Technology). AMD has a similiar feature called AMD-v. Be sure to activate that feature in your BIOS if available - it gives you notable performance boost.
Upvotes: 0
Reputation: 3823
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. The same applies for 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:
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):
patchLibLwAwt("/Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/jre/lib/lwawt/liblwawt.dylib")
Finally run the script by typing "sudo python ./VMware-Java7-patch.py" to your terminal/console.
This should do the trick and Java applications now should run without problems, without restarting your system. This patch works for VMWare and Virtualbox.
Best regards.
Upvotes: 3
Reputation: 5785
If your error is related to JVM you have not installed JVM, or the path is missing for JVM,
File Structure of JDK and JRE link
this will state that if you do not have JVM installed you do not have the libjvm.dylib file installed.
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
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.'
So if swing/awt is advanced and dependent on jvm like in the older post in case of eclipse.
I am not Advance Java User, so not master in 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. I found this details here link2
I hope this will do :)
Upvotes: 1