I created a file as follows: (From the Packages Tutorial in the java homepage
http://java.sun.com/docs/books/tutorial/java/package/QandE/packages-questions.html) package mygame.shared;
public class Utilities {
// set DEBUG = false and compile to stop debug messages
final static boolean DEBUG = true;
public static void printMsg(String msg) {
if (DEBUG) {
System.out.println(msg);
}
}
}
Placed the file in a directory 'myDirectory'
From the command line in the myDirectory folder I run:
javac Utilities.java
From the tutorial, and what you mentioned above I think the resulting Utilites.class file should be placed in a subdirectory of myDirectory name mygame/shared but it is just created in the current directory.