Java-Projects does not have ONE path! Java-Projects has multiple pathes even so one Class can have multiple locations in different classpath's in one "Project".
So if you have a calculator.jar located in your JRE/lib and one calculator.jar with the same classes on a CD: if you execute the calculator.jar the classes from the CD, the java-vm will take the classes from the JRE/lib!
This problem often comes to programmers who like to load resources deployed inside of the Project. In this case,
System.getResource("/likebutton.png")
is taken for example.