
March 5th, 2004, 06:17 PM
|
 |
Major General
|
|
Join Date: Oct 2003
Location: Crystal Tokyo
Posts: 2,453
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Combat Simulator Released!
Quote:
Originally posted by mivayan:
I am not sure exactly how and why but I have experienced the problem of java not looking for class files in the current directory.
Try this: java -classpath D:\Strategy\dominions2\doc\CombatSim Fight militia militia
|
Thanks a lot for the suggestion!
BTW, from within the correct directory, you could probably type this:
java -cp . Fight militia militia
and get the same result. "." means current directory - it worked for me.
I don't remember how to permanently get it into Java's head that class files are found in the local directory, but I'll post it here if I find out.
|