Benjamin Scabbia wrote:Just tested it in eclipse and it works fine. How are you compiling and running your code?
Eclipse is not good at hunting down this issue here. It could be caused by the packaging. It could be caused by the location of the source or class files. It could be caused by the classpath. All of these are taken care of for you by Eclipse.
Put both of the files in a single folder, remove all the package definitions, and then compile using javac *.java. In case you didn't know, *.java, where * is a wildcard to select every java file in the current directory and then compiles it.