Discussion Locked

java keyboard class error

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

i have win 2000 pro, i have copied the file cs1.jar into my 2 ext folders as it stated i should do...i have the path and setclasspath in my environment variables...i can compile and run no keyboard class projects ...and i can compile but not run anywith the keyboard class..i get this error:
Enter your midterm grade: Exception in thread "main" java.lang.NoClassDefFoundE
rror: cs1/Keyboard
at averageif.main(averageif.java:22)
what can be the problem?
thanks
sr

3 replies

by pablo797

That errors usually means that the class file that you trying to run does not contain a 'main'
Make sure that the class file that starts the program constans the main function or procedure.

I hope this helps you.

This discussion is closed to new replies.