United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6546085 : Install MagicIso causes Desktop.getDesktop.open(File file) fail to work

Details
Type:
Bug
Submit Date:
2007-04-13
Status:
Open
Updated Date:
2011-04-29
Project Name:
JDK
Resolved Date:
Component:
client-libs
OS:
windows_xp
Sub-Component:
java.awt
CPU:
x86
Priority:
P4
Resolution:
Unresolved
Affected Versions:
6
Targeted Versions:

Related Reports

Sub Tasks

Description
FULL PRODUCT VERSION :
java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
I attempted to open a file via java.awt.Desktop.getDesktop().open(File file).

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Install MagicIso from www.magiciso.com.
Try to launch any file using java.awt.Desktop.getDesktop().open(File file).

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The expected outcome was that the file be opened.
ACTUAL -
There was no indication that the JRE tried to open the file and no exception was thrown.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
try {
    Desktop.getDesktop().open(new File("C:\\ANYTHING"));
} catch (Exception e) {}
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
Uninstalling MagicIso resulted in the JRE opening files via java.awt.Desktop.getDesktop().open(File file) again.

                                    

Comments
EVALUATION

The bug is easily reproduced on my WinXP SP1 desktop. I have written a short native test (attached) that performs roughly the same actions as AWT Desktop class. Using it, I found that after MagicISO is installed, all the commands like "file://path:/to/file" stop working, while "path:\\to\\file" still handled correctly. Most probably this is a bug in MagicISO, however, I don't know if they have a public bugs database.
                                     
2007-04-24



Hardware and Software, Engineered to Work Together