On Windows 2000 when trying to access a file one will get the following error
message:
"There is no disk in the derive. Please insert a disk into drive \Device\Harddisk0\DR0" where the device is a IOMega Zip drive and this
happens of course when there is no disk present.
Name: krC82822 Date: 03/05/2001
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
The following snippet of code illustrates the getResourceAsStream() call. When
executing this call, the program scans all drives and gives two "No Disk in
drive" errors (one for A, one for G, both are removeable). Clicking Ignore for both allows the program to launch successfully:
private HScreen loadScreen(String name)
{
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
InputStream st = getClass().getResourceAsStream("/screens/" + name
+".xml");
if(st == null) {
System.out.println("Can not load screen " + name);
return null;
}
The XML files are being loaded from a JAR file. The problem does not occur when
running directly with javaw.exe, only when run under WebStart. (Unfortunately,
we have to use WebStart for other reasons...)
(Review ID: 116737)
======================================================================
###@###.### 2001-10-08
Found the same problem in win 2000 server. The annoying message saying
"There is no disk in the drive. Please insert a disk into drive A:. "
This message kelt displaying for more than 20 times when I tried to close it, but failed to do so.
Note, the drive is not IOMega Zip drive.
Also tested on win 98 2nd, there's no such problem.