something is up with my compiler....

Ok it is kind of a weird issue, and this does not happen to me at work. But at home when I compile a file, for some reason the compiler creates 2 class files, the correct one, and a smaller one with the same name but a $1 at the end. So If I compile the file test.java, I get test.class and test$1.class. The other issue is that if I have a file that is in a package, and I compile this file from outside my IDE (Jcreator) for some reason the package (directory) does not get created. Does anyone know why this happens? I was messing around with classpath vars not too long ago, could that have something to do with it?

Looks like an anonymous inner class.

[quote=“Kommi,post:1,topic:25686”]
The IDE creates that output directory for you, not javac. When using the command line, if you want classes to be output to a directory other than the default (where the source file for that class resides) you will have to create it yourself and specify it with the -d option. To see a list of command line options, type ‘javac’ with no arguments at the command prompt.

Thanks, solved both issues.