Perry Smith

Java Questions & Answers

Home / Java Q & A Archive Page 3 / Java Q & A Archive

Can't find class!!
 Wednesday, 09-Dec-98 00:22:23

      163.31.142.241 writes:

      First, thanks to webmaster for referring to question6! It got me over one hurdle! Now I
      have a new problem... I run "C:\jdk1.2\bin>javac Hello.java" and my code compiles fine
      and creates the class file in the same directory - bin.  WWOOO HOOOO!!!!! I was so happy.
      But, when I run "C:\jdk1.2\bin>java Hello" I get the output "Exception in thread "main"
      java.lang.NoClassDefFoundError: Hello" Anyone know why?
      When I do the exact same thing but using the jdk1.1.7A the output merely states
      "Can't find class Hello"
      Thanks again!


      Going Nuts but feeling better now


Response
 Re: Can't find class!!
 Wednesday, 09-Dec-98 01:18:04

      24.1.16.214 writes:

      does your CLASSPATH include the directory C:\jdk1.2\bin?

      -calyxa



Home / Java Q & A Archive Page 3 / Java Q & A Archive