I am in java programing this year in college. First couple of chapters have went fine. They have us learning by using "notepad" and the command prompt. I had just completed my latest assignment and went to compile it and it told me "class or interface expected". I figured I did something wrong. I went and retrieved another assignment that I have already ran know it works. It compiled fine, but when I try to run it gives me "java.lang.noclassdeffounderror". I tried other assignments that I knew were wright, and they say the same thing. Any help will be greatly appreciated.
ATS
0
Light Poster
Recommended Answers
Jump to PostCheck your classpath settings. Most likely you don't have the current directory ('.') in your classpath.
Or if not that, you have a typo somewhere in your classname (remember Java is case sensitive) or you're in the wrong directory (and the directory your classes root in is not in the …
All 5 Replies
jwenting
1,889
duckman
Team Colleague
indianscorpion2
-1
Junior Poster in Training
ATS
0
Light Poster
indianscorpion2
-1
Junior Poster in Training
indianscorpion2
-1
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.