1. Hey Guest Did you know you can win an Honor 10 phone worth ₹33,000 and an additional ₹70,000 in paytm vouchers, just by replying to some threads and taking part in the discussions happening in the Honor Hub?

    What are you waiting for? Start commenting and start winning! Remember to read the instructions posted here.

    Dismiss Notice

Java execution error!!

Discussion in 'QnA (read only)' started by nitish_mythology, Apr 11, 2006.

Thread Status:
Not open for further replies.
  1. nitish_mythology

    nitish_mythology OSS Enthusiast!

    Joined:
    Sep 9, 2005
    Messages:
    664
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Hills of Kumaoun
    I have been writing simple java console programs since a long time. Now when I started workig in my dad's laptop , i am unable to execute the programs.
    After successful compilation an error flashes---
    Exception in thread "main" java.lang.noClassDefFounderror :file name

    WHY IS THIS ERROR CAUSED ?? HOW TO TROUBLESHOOT IT??
     
  2. sakumar79

    sakumar79 Active Member

    Joined:
    Nov 28, 2004
    Messages:
    2,441
    Likes Received:
    9
    Trophy Points:
    38
    Location:
    Madurai
    See http://www.jguru.com/faq/view.jsp?EID=455768

    It means that your classpath is not set correctly. Make sure your JAVA_HOME is set up right before you run the tomcat or startup scripts. More links available at above site

    Arun
     
  3. QwertyManiac

    QwertyManiac Commander in Chief

    Joined:
    Jul 17, 2005
    Messages:
    6,656
    Likes Received:
    10
    Trophy Points:
    0
    This also happens if you make a mistake in the proggie's class and filenames...
     
  4. OP
    OP
    nitish_mythology

    nitish_mythology OSS Enthusiast!

    Joined:
    Sep 9, 2005
    Messages:
    664
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Hills of Kumaoun
    Thanks JGURU...

    @JGuru---
    Thnks for your P.M. I thought you will be busy and it will take you some time to reply, hence I posted the topic on forum.
     
Thread Status:
Not open for further replies.

Share This Page