Java Question

I have built an application to run on a Ubuntu box. It is pulling a config file from the network path. When I try to run it, I get the error: “/home/amn/smb:\\path\ o

I am building this in Java, and my path to it is this:

 File file = new File("smb:\\\\\\\\path\\\	o\\\

Any suggestions?

put the absolute path to smb. Since you’re running from your home… it thinks “smb” is in your home directory. It should be something similar to /smb/path/to/network/file.xml. Instead of doing “\\” you can use File.seperator

To be honest, I’ve never used File.separator. Would you be able to provide some guidance for that?