help me

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • siri
    New Member
    • Sep 2006
    • 2

    help me

    hi,

    if i compile a program i get compiled program but i run that it throws an exception like : exception in thread "main" java.lang.notcl assdeffound
    i set the classpath correctly but i got an error.please tell me the solution
  • D_C
    Contributor
    • Jun 2006
    • 293

    #2
    What is the directory of java.exe, your *.class file, and what is the class path?

    Are you sure the class path is set correctly? To make absolutely sure, paste the class into the same directory as the java file. Then type "java - cp . ClassName" in the command line (without the quotes).

    Comment

    • vidi
      New Member
      • Sep 2006
      • 4

      #3
      Originally posted by siri
      hi,

      if i compile a program i get compiled program but i run that it throws an exception like : exception in thread "main" java.lang.notcl assdeffound
      i set the classpath correctly but i got an error.please tell me the solution

      Hi,

      You may try to set the classpath to the current directory ... for instance, your file is test.java, here is how it goes:

      cmd> set classpath=.
      cmd> javac test.java
      cmd> java test

      Comment

      Working...