title: Will InputStreamReader getResourceAsStream work in Linux?
body: <p>I have this code in a Java EE Application for reading the Properties file.
  Even though the <code>Myservice.properties</code> is placed under <code>WEB-INF/classes</code> folder, the properties aren't being read in Linux environment, but it is working fine in Windows environment.</p>
  
  <pre><code>InputStreamReader fMainProp = new InputStreamReader(this.getClass().getResourceAsStream("/Myservice.properties"));
  </code></pre>
  
  <p>Will the above will only work in windows?</p>
  
  <pre><code>MyWeb() {
      prop = new Properties();
      try {
          InputStreamReader fMainProp = new InputStreamReader(this.getClass().getResourceAsStream("/Myservice.properties"));
          prop.load(fMainProp);
      } catch (FileNotFoundException e1) {
          e1.printStackTrace();
      } catch (IOException e1) {
          e1.printStackTrace();
      }
  }
  </code></pre>