Re: Question about classpath

From: Herman (herman404_at_hotmail.com)
Date: 10/15/03


Date: 14 Oct 2003 15:18:46 -0700

Hi Millan, I can run the java.exe fine from wherever I am. The only
thing is, I get an exception when I run the program, called

Exception in thread "main" java.lang.NoClassDefFoundError: Hello

I believe that the CLASSPATH variable doesn't know where to look to
find the .class file, but can't find it. How do I set CLASSPATH to
the current directory?

Thanks



Relevant Pages

  • Re: JDBC Applet doesnt connect
    ... Note that this is not really a GUI problem. ... I note your catches are printing the exception name, ... in the ARCHIVE and removing the class file from the html. ...
    (comp.lang.java.gui)
  • Re: Escape from Fobbahland - V0.1
    ... Copyright 1985-2001 Microsoft Corp. ... Exception in thread "main" java.lang.UnsupportedClassVersionError: ... umber in .class file ...
    (rec.games.roguelike.development)
  • Re: Jeode and Jbed ClassLoader differences?
    ... class and catch the exception for classNotFoundError and load the other ... You may want to hack a .class file to make it invalid and see if the Jeode ... A verification error can easily be induced by reducing the ... be a good indication of the correct action. ...
    (comp.lang.java.machine)
  • Re: What does FindClass() return?
    ... Exception in thread "main" java.lang.ClassFormatError: ... What is 'tag 0'?! ... instead of the compiled class file. ...
    (comp.lang.java.programmer)
  • Re: Java Web Start Console closes unexpectedly / Reading in data
    ... I don't think these 2 lines (requesting gif, Exception) are related in any way. ... JavaWS just logs the request for the gif ... Later, when loading a .class file, an UnsupportedClassVersionError happens. ...
    (comp.lang.java.programmer)