NoClassDefFoundError



I was wondering what the reason is behind this. I recently installed
the Java 5.0 SDK. Compiling *.java files seems to work fine, but
whenever I try to run something, it gives me that NoClassDefFoundError.
I've seen a solution is to run it as java -classpath . ClassName, but
that's some strange workaround I don't like. Why is this happening? Do
I have to install the SDK in a directory that contains no spaces? By
default it ended up in Program Files\Java.

Thanks,
- Eli

.



Relevant Pages

  • Re: Java problems
    ... > Murray Sutherland wrote: ... > What is happening is that I have installed 2 Java IDE's ... > both of which install a copy of the SDK with the Install. ... > This seems to have stuffed up the something (be it JRE or SDK) ...
    (comp.lang.java)
  • Re: Java problems
    ... > Murray Sutherland wrote: ... > What is happening is that I have installed 2 Java IDE's ... > both of which install a copy of the SDK with the Install. ... > This seems to have stuffed up the something (be it JRE or SDK) ...
    (comp.lang.java.developer)
  • Re: Latest Download of SDK Has Caused Some Problems - Help ?
    ... Installing the Java 2 SDK, v. 1.4.2 and NetBeans IDE 3.5.1 Software Cobundle ... The cobundle installer does not install the public JRE, Java Web Start, or ... Select "Java 2 SDK, ...
    (comp.lang.java.help)
  • Re: Any updates that might cause problems for SDK standard 1.3.1?
    ... This install worked fine on another computer a few months ago, ... I can only assume an update to the SDK ... Installed Java is 1.5.0 it appears. ... Problem is classpath ... ...
    (comp.lang.java.help)
  • Re: [SLE] Installing JavaSDK - Path Problems
    ... > Anyhow I installed SuSe 9.0 which came with Java's JRE. ... > default when I installed SuSe) but not the SDK. ... > the SDK only and any java associated command wouldn't work (such as java ... > When I install the SDK or JRE using sun's rpm they install in ...
    (SuSE)