Does anybody know what could be the way to access a network folder? I need to access an unix folder from a java 1.4 program and then read a specific file from that folder. I tried to read some chapters about networking or I/O where they use network socket for this purpose. But I am not allowed to create any socket on the server side. And also the server has password and username which my program needs to give as an argument. Any idea? Please help.
What kind of access do you have to that folder? If the drive is mounted, all all permissions have been given, you should be able to use the java.io.File classes as you would with a local class. If the file is on a Samba share (probably not, because you specifically mention a Unix share), you could use the jCIFS library.