文件未在java中访问

文件未在java中访问,java,linux,file,file-io,java-io,Java,Linux,File,File Io,Java Io,是给错了,我也试过了 File file = new File("\\10.200.64.8\\home\\rbts\\IBST000826"); FileInputStream fin = new FileInputStream(file); 及 该文件在linux机器上,我正在windows机器上访问它。任何机构都可以提出建议或解决方案 File file = new File(new URI("file:////10.200.64.8/home/rbts/IBST000826"));

是给错了,我也试过了

File file = new File("\\10.200.64.8\\home\\rbts\\IBST000826");
FileInputStream fin = new FileInputStream(file);

该文件在linux机器上,我正在windows机器上访问它。任何机构都可以提出建议或解决方案

File file = new File(new URI("file:////10.200.64.8/home/rbts/IBST000826"));
java.io.FileNotFoundException:\10.200.64.8\home\rbts\IBST000826(系统找不到指定的路径)
在java.io.FileInputStream.open(本机方法)
位于java.io.FileInputStream。(未知源)
位于com.sapphire.oracle.osb.hbl.isohandler.utils.ISO_MessageUtils.getFileContent(ISO_MessageUtils.java:350)
位于com.sapphire.oracle.osb.hbl.isohandler.utils.ISO_MessageUtils.main(ISO_MessageUtils.java:366)
更改为:

java.io.FileNotFoundException: \10.200.64.8\home\rbts\IBST000826 (The system cannot find the path specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at com.sapphire.oracle.osb.hbl.isohandler.utils.ISO_MessageUtils.getFileContent(ISO_MessageUtils.java:350)
    at com.sapphire.oracle.osb.hbl.isohandler.utils.ISO_MessageUtils.main(ISO_MessageUtils.java:366)

为了确保文件路径中的
\\

@AhmedJunaid,这不是我的建议。你能在这里写下你想建议我的相同内容吗?我也尝试过file file=new file(“//ip//home//rbts//IBST000826”)@艾哈迈德·朱奈德,我的回答中有!?我已经看到,要在linux机器上访问文件,需要从windows操作系统进行身份验证。我想这就是原因
java.io.FileNotFoundException: \10.200.64.8\home\rbts\IBST000826 (The system cannot find the path specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at com.sapphire.oracle.osb.hbl.isohandler.utils.ISO_MessageUtils.getFileContent(ISO_MessageUtils.java:350)
    at com.sapphire.oracle.osb.hbl.isohandler.utils.ISO_MessageUtils.main(ISO_MessageUtils.java:366)
File file = new File("\\\\10.200.64.8\\home\\rbts\\IBST000826");
                    //^^^^