You are using Java 5, but Properties.load(Reader) was introduced only in Java 6 (aka 1.6). If this happens again, check JavaDocs (for example, Properties JavaDoc in this case) and look at the participant you are interested in - it often gives the version in which it was entered (for example, “Starting at: 1.6” in this case).
You will need to create an InputStream instead of a Reader or upgrade to Java 6. I suspect you will find that NetBeans uses Java 6, so it works there.
source share