Unrecognized package mates

Hi everybody,

here's a little riddle for u (though a royal pain in the ass to me!!!!).

Well, simply, classes in the same directory are unable to see each other!I really can't get why, it all worked fine until yesterday night, and now!Damn...

Do u have any idea what it comes from and/or (better) how to solve it?

Thank u guys for any helpful tip!

Take care

Simone

[408 byte] By [Laimona] at [2007-10-2 9:42:41]
# 1

Listen to this : I downloaded the HelloWorldSwing.java file, which is , how u can easily infer, a really basical program to start getting along with GUIs.

I compile it with no errors (sure, doesn't call any other class), but when I try to run it, it gives this abominable "NoClassDefFoundError".

Damn!!!

Somebody give me a hint...

Cheers

Simone

Laimona at 2007-7-16 23:48:25 > top of Java-index,Developer Tools,Java Compiler...
# 2

It's a classpath problem, most likely. Tryjava -classpath . HelloWorldSwingThat will work if HelloWorldSwing.class is in the current directory, and the HelloWorldSwing.java source code does not start with a package statement.

If you continue to have problems, please post the full exact error message, and what you typed in to launch the application. Also, you can use -classpath . with javac as well.

atmguya at 2007-7-16 23:48:25 > top of Java-index,Developer Tools,Java Compiler...