views:

78

answers:

1

Hi

Currently I have a folder with 6 classes. The main class being called "Interaction".

I compile all the classes by using javac *.java

How do I run the program? When I type "java Interaction" I get errors as the other classes are not being loaded. Its as if I need to link the other 4 classes into the main class. How do I do this?

Im using windows command prompt

Thanks Philip

Do I need to set all the program in a package or something?

A: 

Look at the CLASSPATH variable by typing "echo %CLASSPATH%" on the command prompt. Make sure it includes the current directory and any required jars. Compare it with the one used by Eclipse.

mrajeshc