FileSystemView.getShellFolder: f=D:\
Hello all,
I am getting following runtime exception when I execute the application on JDK 1.4.2_13. But run successfully on JDK 5. If you have any solution or idea please tell me.
File[] roots = File.listRoots();
String deviceType=FileSystemView.getFileSystemView().
getSystemTypeDescription(roots);
Exception as follows :
FileSystemView.getShellFolder: f=D:\
java.io.FileNotFoundException: File D:\ not found
at sun.awt.shell.Win32ShellFolderManager2.createShellFolder(Win32ShellFolderManager2.java:48)
at sun.awt.shell.Win32ShellFolderManager2.createShellFolder(Win32ShellFolderManager2.java:36)
at sun.awt.shell.ShellFolder.getShellFolder(ShellFolder.java:236)
at javax.swing.filechooser.FileSystemView.getShellFolder(FileSystemView.java:486)
at javax.swing.filechooser.WindowsFileSystemView.getSystemTypeDescription(FileSystemView.java:639)
at IsDevice.scanForDevice(IsDevice.java:16)
Here D:\ is my CD Drive.
Regards
Nikhil

