I'm attempting to run Oracle Java in an OS X VM in Fusion. However Java (e.g. the Java item in System Preferences) crashes when I execute it. Looking at the stack trace, it looks like it's the result of attempting to initialize OpenGL:
Thread 17 Crashed:: Java: Java2D Queue Flusher
0 libsystem_kernel.dylib 0x00007fff9759cce2 __pthread_kill + 10
1 libsystem_c.dylib 0x00007fff99ea97d2 pthread_kill + 95
2 libsystem_c.dylib 0x00007fff99e9aa7a abort + 143
3 libjvm.dylib 0x000000010fe38073 os::abort(bool) + 25
4 libjvm.dylib 0x000000010ff2682e VMError::report_and_die() + 2306
5 libjvm.dylib 0x000000010fe39767 JVM_handle_bsd_signal + 1073
6 libsystem_c.dylib 0x00007fff99efbcfa _sigtramp + 26
7 libGL.dylib 0x00007fff8f3512b4 glGetString + 15
8 liblwawt.dylib 0x0000000114a40fbb Java_sun_java2d_opengl_OGLContext_getOGLIdString + 35
9 ??? 0x000000011063ef70 0 + 4569952112
10 ??? 0x0000000110633333 0 + 4569903923
11 ??? 0x0000000110633806 0 + 4569905158
12 ??? 0x000000011062d4f7 0 + 4569879799
13 libjvm.dylib 0x000000010fd0bafb JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*) + 557
14 libjvm.dylib 0x000000010fd0bfd8 JavaCalls::call_virtual(JavaValue*, KlassHandle, Symbol*, Symbol*, JavaCallArguments*, Thread*) + 256
15 libjvm.dylib 0x000000010fd0c112 JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, Symbol*, Symbol*, Thread*) + 74
16 libjvm.dylib 0x000000010fd42a8c _ZL12thread_entryP10JavaThreadP6Thread + 169
17 libjvm.dylib 0x000000010fefb694 JavaThread::thread_main_inner() + 134
18 libjvm.dylib 0x000000010fefcb7a JavaThread::run() + 440
19 libjvm.dylib 0x000000010fe38595 _ZL10java_startP6Thread + 173
20 libsystem_c.dylib 0x00007fff99ea78bf _pthread_start + 335
21 libsystem_c.dylib 0x00007fff99eaab75 thread_start + 13
The same Oracle Java version works fine outside of a VM, which indicates it's likely a virtual hardware adapter bug. glxinfo also happens to fail in a VM, but works fine on the host OS:
admins-Mac:~ admin$ glxinfo
name of display: /tmp/launch-aoxYKP/org.x:0
X Error of failed request: GLXBadContext
Major opcode of failed request: 0 ()
Serial number of failed request: 17
Current serial number in output stream: 17
admins-Mac:~ admin$
This is potentially related to: