我在 Linux 中开发了一个调用 DDS 磁带驱动器的应用程序。在 Linux 中,我使用路径来调用 /dev/st0 的磁带驱动器
该应用程序是用 Java 编写的,它使用 JNI 调用其本机函数
我正在尝试在 Windows 8.1 上运行我的应用程序,但显然我得到了一个错误:
java.io.IOException: The system cannot find the path specified.
你知道如何解决这个问题吗?
这是触发问题的 Java 代码:
public TapeJNI(String pathName){
fd = new FileDescriptor();
System.out.print("Opening device...");
System.out.flush();
try {
tapeOpen(pathName); //here it is
} catch (IOException e) {
System.err.print(e);
}
System.out.println("done!");
}