java not compiling :(

Soldato
Joined
29 Oct 2005
Posts
3,298
ok guys, my file structure is:
/TurtleInterpreter.java
/turtleSupport/paper.java
/turtleSupport/turtle.java

when I try and compile paper and turtle from the command line it works fine. When I compile TurtleInterpreter from JCreator it works fine. However I need to use input redirection - therefore need to use the command line java.exe. But when I do this I get:

exception in "main" java.lang.NoClassDefFoundError: TurtleInterpreter.

I am running the java.exe from the / directory. I also get this error when I try and run the program with Borland java compiler. When I try and use javac.exe to compile it from the command line I get loads of errors saying it cannot find the classes, or the package turtleSupport.

I have only just started learning java and I dunno what to do!!

Please help
Thanks
Daven
 
Back
Top Bottom