VirtualBox

Ticket #6873 (new defect)

Opened 4 years ago

Last modified 2 years ago

Cannot run Java in XP guest if Direct 3D guest drivers are installed

Reported by: davidwhodgins Owned by:
Priority: major Component: 3D support
Version: VirtualBox 3.2.2 Keywords: java
Cc: Guest type: Windows
Host type: Linux

Description (last modified by misha) (diff)

Attempting to run java either as an applet in a browser, or selecting the java control panel entry results in java starting, using all available cpu, but never responding. The gui for the control panel java item does not display. Process explorer shows java taking all available cpu.

I've fallen back to VirtualBox-3.2-3.2.0_61806_mdv2009.1-1.i586.rpm where java works ok.

Attachments

VBox.log.javabad Download (73.3 KB) - added by davidwhodgins 4 years ago.
Log with direct 3d, where java loops
VBox.log.javaok Download (73.5 KB) - added by davidwhodgins 4 years ago.
Log without direct 3d, where java is ok.

Change History

comment:1 Changed 4 years ago by frank

A VBox.log file of such a VM session is appreciated.

Changed 4 years ago by davidwhodgins

Log with direct 3d, where java loops

Changed 4 years ago by davidwhodgins

Log without direct 3d, where java is ok.

comment:2 Changed 4 years ago by davidwhodgins

Further testing shows the problem only happens if direct 3d is selected when installing the guest additions.

Fixing it requires uninstalling the guest additions, and then reinstalling, without selecting the direct 3d option. Reinstalling over the existing install doesn't fix it.

comment:3 Changed 4 years ago by frank

  • Component changed from other to 3D support
  • Summary changed from Cannot run java in xp guest on linux host, after installing 3.2-3.2.2_62298 to Cannot run Java in XP guest if Direct 3D guest drivers are installed

Still relevant with VBox 3.2.6 (including 3.2.6 additions)?

comment:4 Changed 4 years ago by nricheton

I can confirm this issue with VBox 3.2.8.

With 3d support in additions:

  • Java 1.6u21 takes 100% of CPU time when AWT is in use (but Eclipse/SWT works)
  • Java 1.6u06 works with AWT applications

Uninstalling additions and reinstalling without 3d support

  • Java 1.6u21 works with AWT applications

System : OSX 10.6.4 Guest : Windows XP SP3

comment:5 Changed 3 years ago by mkalen

Confirmed with VirtualBox 3.2.12 r68302 on Ubuntu 10.10 with Windows XP guest.

Tried the following work-around that did NOT work: Uninstall Java, uninstall VirtualBox Guest Additions, reboot into safe mode, install VirtualBox Guest Additions with Direct 3D acceleration, install Java.

The following work-around (turn off Direct 3D support completely in Java) does "work" but does not really solve the problem: set environment variable J2D_D3D to value false. Confirmed with Oracle JRE 6u23.

Source for workaround:  http://forums.virtualbox.org/viewtopic.php?t=27543#p163600

comment:6 follow-up: ↓ 7 Changed 2 years ago by alanbur

Still broken in VB 4.1.14, WinXP & Java 6_32 on Solaris 11. Tried all the usual workarounds - uninstall in safe mode, reinstall etc etc - the only one that works is the J2D_D3D.

comment:7 in reply to: ↑ 6 Changed 2 years ago by misha

  • Description modified (diff)

Replying to alanbur:

Still broken in VB 4.1.14, WinXP & Java 6_32 on Solaris 11.

When you install 4.1.14 Guest Additions, does the installer displays some warning dialog about corrupted D3D files?
If yes, then this is the cause of your trouble, you should fix that following instructions in  http://www.virtualbox.org/manual/ch12.html#ts_d3d8-d3d9-restore

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use