Can't Run with java command

Have just installed SDk J2SDK SE 1.4.2_05 and everything seems to be configured alright.........

java - version displays as expected.

javac does its job as expected and compiles class files (have configured path permanently)....

whenever I try to run the java command on that class file I am informed

Exception in thread "main" java.lang.NoClassDefFoundError: <Filename>

has the way of running a java command changed between ver 1.4.1 and 1.4.2? or is there a problem in the java.lang class?

Please advise as this seems like it might be a bug!!!!!

Thanks

[609 byte] By [sidekick43] at [2007-9-30 18:52:37]
# 1
I don't think it is a bug.Assuming the source code is abc.java and you have compiled to a abc.class fileWhat you then do is type these ONLY:<code>java abc</code>
mayyou at 2007-7-6 21:10:41 > top of Java-index,Desktop,Deploying...
# 2
[<code>]java abc[</code>]
mayyou at 2007-7-6 21:10:41 > top of Java-index,Desktop,Deploying...
# 3
Sorry, the command should bejava abc
mayyou at 2007-7-6 21:10:41 > top of Java-index,Desktop,Deploying...
# 4

Java cannot find the xxx.class file.

First, make sure that the file xxx.class exists with that name and you know where it is.

Change to the directory that xxx.class is in, and issue the following command. Make sure that it includes the spaces and dot (period) as shown:

java -classpath . xxx

If that works the problem is a classpath problem. If you have a classpath environment variable set, clear it.

Read here:http://java.sun.com/j2se/1.4.2/docs/tooldocs/tools.html for information on the classpath.

ChuckBing at 2007-7-6 21:10:41 > top of Java-index,Desktop,Deploying...