title: Read a file on Linux server through java program running in Windows env
body: <p>I have simple Java program which reads a file and writes it on my console in eclipse tool. I'm<br>
   trying to execute the same java program to read the file on Remote Linux server. Please help how can I achieve it?</p>
  
  <pre><code>import java.io.BufferedReader;
  import java.io.FileInputStream;
  import java.io.InputStreamReader;
  
  public class Test {     
  public static void main(String[] args){
      String path = "C:/tmp"; 
      String file = "java2502201411.txt"; 
        try
        {
        FileInputStream in = new FileInputStream(path + "/" + file);
        BufferedReader br = new BufferedReader(new InputStreamReader(in));
        String strLine; 
        while((strLine = br.readLine())!= null)
        {
         System.out.println(strLine);
        }
        }catch(Exception e){
         System.out.println(e);
        } 
     }  
  }
  </code></pre>
  
  <p>I'm able to call a file from other windows environment which is in network. for Eg: I'm trying to read a file on my windows network such as usmnp1804 terminal. 
  String path = "//usmnp1804/C$/tmp". In the similar way I'm trying to read a file on Linux server but it is not working as intended, getting an error such as File not found Exception. I suspect such as my java program is not able to hit Linux server path. Please help.
  String path = "/home/jctadm/tmp".</p>
  
  <p>Thanks
  Raj</p>