<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Tech-Recipes - Latest Comments in Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><language>en</language><lastBuildDate>Sat, 04 Jul 2009 14:29:00 -0000</lastBuildDate><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-12157589</link><description>thanks for the replies that have been posted....&lt;br&gt;i am so glad that my problem has been solved...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">rahul  agarwal</dc:creator><pubDate>Sat, 04 Jul 2009 14:29:00 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-12104146</link><description>Your advice point out what I missed. Thz alot techno.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Su</dc:creator><pubDate>Fri, 03 Jul 2009 18:55:03 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-11440626</link><description>Thank you - this is so helphul for me at the moment&lt;br&gt;&lt;br&gt;If you are also dependent on a jar file in the same folder you may need to have something like&lt;br&gt;java -classpath .;./dependent.jar helloworld</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ian</dc:creator><pubDate>Fri, 19 Jun 2009 06:02:43 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-11039099</link><description>Does not work</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 17 Jun 2009 08:25:32 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-9881493</link><description>You will also get this error if you append the .class designator when you try to run it.  as &lt;br&gt;java HelloWorld.class&lt;br&gt;&lt;br&gt;java is expecting a class so the .class suffix is not necessary&lt;br&gt;&lt;br&gt;of course your class path might be wrong also ;-)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sixlead</dc:creator><pubDate>Mon, 25 May 2009 05:12:38 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-9872770</link><description>Worked for me !!!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Loser</dc:creator><pubDate>Sun, 24 May 2009 23:39:45 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-9872000</link><description>!!ALERT!! !!ALERT!!&lt;br&gt;&lt;br&gt;I just followed every suggestion in this string and no dice...&lt;br&gt;&lt;br&gt;FINALLY I GOT IT ----&amp;gt;  (on Windows XP)  MAKE SURE YOU COMPILE YOUR PROGRAM WITH C:\...javac ClassName.java  before you try to execute with C:\...java ClassName&lt;br&gt;&lt;br&gt;You will know your program is compiled when you find a ClassName.class file in the same folder as your original ClassName.java program.&lt;br&gt;&lt;br&gt;Hope this helps the last desperate few.&lt;br&gt;And yes, of course, make sure your path and classpath are correctly configured.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kieran Taylor</dc:creator><pubDate>Sun, 24 May 2009 22:38:12 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-9520940</link><description>and instead of joader its loader sorry for that</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">hello</dc:creator><pubDate>Mon, 18 May 2009 22:06:41 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-9520925</link><description>hey this is me hello again and please dont post anything too confusing i have no knowledge of java except for classpath and path so please keep it simple</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">hello</dc:creator><pubDate>Mon, 18 May 2009 22:05:56 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-9520786</link><description>hey im not trieng to program a file or anything like taht. im just trieng to play a private game server and i keep getting the error message Exception in thread "main" java.lang.nodeffound: joader i have no idea how to fix it can anyone help? my CLASSPATH is C:\Program Files\Java\jdk1.5.0_18\bin; and my PATH in C:\Program Files\Java\jdk1.5.0_18\bin&lt;br&gt;&lt;br&gt;&lt;br&gt;anyone help?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">hello</dc:creator><pubDate>Mon, 18 May 2009 22:00:48 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-9322605</link><description>Hi ,&lt;br&gt;&lt;br&gt;First set the JAVA_HOME variable with your bin directory.&lt;br&gt;then try to run .it will help u.&lt;br&gt;&lt;br&gt;Regards&lt;br&gt;Ram Yadav</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ram</dc:creator><pubDate>Thu, 14 May 2009 07:34:20 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-8878562</link><description>Awesome dude thanks this solved my problem..I used to think that java.exe compiles and executes the application but I gues I was wrong....</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ut_stud007</dc:creator><pubDate>Thu, 30 Apr 2009 18:13:50 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-8806598</link><description>Awesome.&lt;br&gt;It worked great</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nabil</dc:creator><pubDate>Wed, 29 Apr 2009 07:54:27 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-8299046</link><description>thanq very much for giving the solution.......</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">aravind</dc:creator><pubDate>Fri, 17 Apr 2009 12:48:36 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-7902587</link><description>hello ,i got a problem while executing a sample java program.&lt;br&gt; error is java.lang.NoClassDefFoundError: and im using jdk 1.6 version .&lt;br&gt;someone helpout this</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">priyaj</dc:creator><pubDate>Mon, 06 Apr 2009 09:59:00 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-7898344</link><description>Exception in thread "main" java.lang.NoClassDefFoundError: Receiver/class&lt;br&gt;Caused by: java.lang.ClassNotFoundException: Receiver.class&lt;br&gt;        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)&lt;br&gt;        at java.security.AccessController.doPrivileged(Native Method)&lt;br&gt;        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)&lt;br&gt;        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)&lt;br&gt;        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)&lt;br&gt;        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)&lt;br&gt;        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)&lt;br&gt;Could not find the main class: Receiver.class.  Program will exit.&lt;br&gt;&lt;br&gt;where Receiver is my class..code is getting compiled perfectly but when i run its givin the above error..</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jango19</dc:creator><pubDate>Mon, 06 Apr 2009 08:22:35 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-7651217</link><description>Thanks sooo much. if the java - classpath . helloworld  doesnt work it is probably due to spacing and upper lower case letter problem.&lt;br&gt;&lt;br&gt;for me i didnt put  a space after java and a space either side of the full stop. and i forgot to write my class with an upper case letter which is how it was saved.&lt;br&gt;&lt;br&gt;java(space) -classpath(space) . (space)Welcome1</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomaso</dc:creator><pubDate>Mon, 30 Mar 2009 20:48:28 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-7463009</link><description>thanks techno, great advice!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">desperado</dc:creator><pubDate>Tue, 24 Mar 2009 04:00:28 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-7462953</link><description>i used textpad and i still got the same error, can anyone tell me what's wrong?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">desperado</dc:creator><pubDate>Tue, 24 Mar 2009 03:53:50 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-7129598</link><description>i think you are not giving space between the classpath n dot n m...&lt;br&gt;like java -classpath[space].[space]m&lt;br&gt;&lt;br&gt;mine was also having the same error but when i gave spacing between them it worked,,..so u can also try dis once...</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">techno</dc:creator><pubDate>Thu, 12 Mar 2009 05:07:40 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-7087881</link><description>OMG Thankyou After 5 Hours Thankyou.. with that advice it all works exactly the way it should LOL</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">GXOne</dc:creator><pubDate>Tue, 10 Mar 2009 19:54:23 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-7065192</link><description>hi guys,&lt;br&gt;&lt;br&gt;I got this error when i made the mistake of running the class file. Make sure you are running the job correctly (fyi, I'm running vista):&lt;br&gt;&lt;br&gt;Correct: C:\Users\Crimson\teaching&amp;gt; java Example&lt;br&gt;&lt;br&gt;Incorrect: C:\Users\Crimson\teaching&amp;gt; java Example.class&lt;br&gt;&lt;br&gt;This is really easy to forget about, especially if you're used to using an IDE like Eclipse, which was the case for me. I scratched my head for a little while and feel really dumb now.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Crimson</dc:creator><pubDate>Tue, 10 Mar 2009 04:50:57 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-6706826</link><description>hi to all&lt;br&gt;&lt;br&gt;too , i have error :&lt;br&gt;&lt;br&gt;Exception in thread "main" java.lang.NoClassDefFoundError: nameclass&lt;br&gt;&lt;br&gt;help me.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nice</dc:creator><pubDate>Fri, 27 Feb 2009 13:55:21 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-6661817</link><description>I had the same problem but your suggestion above did not work. You missed the most obvious problem which is that Java is case sensitive. If you reference the class as Helloworld in the script and then try to run it using java -classpath . helloworld (with the file actually named helloworld.class) then you will get the same error referenced above. The problem is the upper case "H" in the script and then the file starting with a lower case "h".</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gary Lesperance</dc:creator><pubDate>Thu, 26 Feb 2009 14:22:32 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError | Java programming | Tech-Recipes</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-6633727</link><description>Ha!  I figured it out!  I just wasn't compiling every file!  "javac *.java" fixed it all!  YES!!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">The One</dc:creator><pubDate>Thu, 26 Feb 2009 00:38:45 -0000</pubDate></item></channel></rss>