Image

Imagesilx wrote in Imagejava_dev 😡grumpy

Question..

Hello, I'm newbie here.

I've been studying Computer Science and at the moment I have Java course. Now.. don't worry, I will not ask you to write a program for me. I think I can handle them myself.
Anyways.. We are writing Java programs under Linux at school. And I honestly haven't had to to work on them at home.
So today I installed Java to my home computer and tested it on a well-working short program. Used the command prompt of Windows.. got all the folders and stuff right..
So at first the compiler (typed: javac test1.java) said that there was no errors and so then I typed

java test1

to see if the program is really working and the command prompt said:

Exception in thread "main" java.lang.NoClassDefFoundError: Test1/Java


So.. wtf?!
It says that with every program. And I really really need to get it working tonight!
What should I do.. Or what have I done wrong?!