Jason Shepherd

Greenhorn
+ Follow
since Nov 28, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jason Shepherd

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.
16 years ago