This discussion is archived
2 Replies Latest reply: Dec 22, 2008 6:44 AM by 843829 RSS

"InternalError: Could not initialize shell library" from JFileChooser

843829 Newbie
Currently Being Moderated
I get the subject error on the console when I try to open a JFileChooser. I happens only on some machines. Our IT department will not admit there is any difference but one set of machines in the lab usually gets this error. I cannot duplicate it on a machine that I have admin rights to. All machines are running Windows XP SP2 and using Java 1.4.2_12.
I suspect that there is something funky about the file system as it is in a lab and the initial directory is on a network drive. I can access the directory using Windows explorer and cygwin. There are no zip files even nearby.

A partial Stack Trace follows:
java.lang.InternalError: Could not initialize shell library
at Method)
at javax.swing.filechooser.FileSystemView.getRoots(
at javax.swing.filechooser.WindowsFileSystemView.getHomeDirectory(
at javax.swing.plaf.metal.MetalFileChooserUI.installComponents(
at javax.swing.plaf.basic.BasicFileChooserUI.installUI(
at javax.swing.plaf.metal.MetalFileChooserUI.installUI(
at javax.swing.JComponent.setUI(
at javax.swing.JFileChooser.updateUI(
at javax.swing.JFileChooser.setup(
at javax.swing.JFileChooser.<init>(
at javax.swing.JFileChooser.<init>(
. . .