Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Opening windows device driver file

843829Feb 10 2003 — edited Nov 27 2004
I am trying to open, read from, write to, and close a custom windows device driver using Java.

I have created a the device driver and have been successful interacting with it using the win32 api calls CreateFile, ReadFile, WriteFile, CloseHandle. (The path to the device driver file is: "\\\\.\\mydriver")

If I try to open the driver file from a Java app, I get a FileNotFoundException! Why is that so? Isn't the JVM using the same CreateFile call in the end?

Thanks in advance!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 25 2004
Added on Feb 10 2003
6 comments
160 views