title: ClassName.class.getResourceAsStream() doesn't load with relative path in Java 7 U 7
body: <p>Problem statement: ClassName.class.getResourceAsStream() doesn't load / find the resource if path to is relative. If the path is absolute, it works fine.</p>
  
  <p>I recently upgraded from Java 6 with JavaFx 2.1 to Java SE 7 u 7 with JavaFX 2.2. It worked fine in the earlier version of JAvaFX 2.0 / Java FX 2.1. IDE used is NetBean IDE 7.2.</p>
  
  <p>I am facing an issue which I find very strange. I created a JAVA FX project using IDE and tried to load the properties file. It works fine when absolute path is specified. But when I change to relative path it fails with exception.</p>
  
  <p><strong>ClassName.class.getResourceAsStream("../resources/newproperties.properties");</strong> // Doesn't work.</p>
  
  <p><strong>ClassName.class.getResourceAsStream("/resources/newproperties.properties");</strong> // Works with absolute path.</p>
  
  <p>Then I created another Simple Java project in Netbeans 7.2 IDE with JAva 7u7 and tried to load the property file using ClassName.class.getResourceAsStream("../newproperties.properties");. It works fine both with relative and absolute path. Basically, if it is JAVAFX 2.2 project, it doesn't load. Where if its a simple java project, the same code works which I find it very strange.</p>
  
  <p>Note: the above code was working fine with Java 6 with Javafx 2.1.</p>
  
  <p>Any help will be appreciated.</p>