Classpath Issues

So I am working on a project, and Something has gone wrong with the class path.

i now get errors like Exception in thread "main" java.lang.NoClassDefFoundError

I am using eclipse 3.2 on redhat.

Whats weird is that, i had everything neatly in a package, and it had no problem when i went : package com.vtes;

now, when i do that, and for all the existing classes, it says the declared package com.vtes does not match the expected package ""

in addition to that. all of the .java files are no longer accessible in the package view. i have to the navigator to get to them. When i run one of the classes (I add a 'main' method, for testing purposes) it gives me a 'launch error : Editor does not contain a main type"

I don't know what other information i can provide, but if there is something that would help me come close to a solution to these problems please just ask.

Any help in understanding what i need to do would be greatly appreicated.

Thanks,

Stephen.

[1023 byte] By [blackbird2150a] at [2007-11-27 7:16:32]
# 1
Do yourself a favor and get rid of your IDE.You do know that the class files have to be in directories named like the package structure, and that the base of this structure needs to be in the classpath?
CeciNEstPasUnProgrammeura at 2007-7-12 19:05:33 > top of Java-index,Java Essentials,Java Programming...
# 2

Unfortunately I am an intern at work, and I kinda have to use what they tell me to use...

Yes i know what the concept of the classpath is, and i know the files need to be structered as such. However, I don't know how to check what my current classpath is.

(I'm very new to these issues, I'm still in school).

Thanks!

blackbird2150a at 2007-7-12 19:05:33 > top of Java-index,Java Essentials,Java Programming...
# 3

Type "set" at the command line and you'll see. Or check the windows system variables. Chances are that you have none at all. Leave it that way, and use the -classpath flag for compiling/running.

If you're an intern, you can btw. also ask a co-worker, which would be the proeferred way to handle your problem.

CeciNEstPasUnProgrammeura at 2007-7-12 19:05:34 > top of Java-index,Java Essentials,Java Programming...