classpath
Hi, I have a problem with an execution of my main class.
Exception in thread "main" java.lang.NoClassDefFoundError: GenerateFile (wrong name: package1/package2/package3/GenerateFile)
My classpath is the following:
/package0 (the root of package1/...)
What's the problem?
The compilation is ok, but this error occurs in runtime.
My system is Red Hat.
Thanks in advance
[419 byte] By [
javikanina] at [2007-11-27 2:30:43]

classpath should be one directory back from thereedit: ignore above, didn't read it properly!how are you running your app, and from which directory? looks like you've got it wrongMessage was edited by: georgemc
yeh, you need to take into account packages. compile and run from the root directory, just above the start of the packages, and use fully-qualified names. a brief look on google for a tutorial will explain it far better than I just did!