<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Tech-Recipes - Latest Comments in Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><atom:link href="https://tech-recipes.disqus.com/java_exception_in_thread_main_javalangnoclassdeffounderror_java_programming_tech_recipes/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 21 Aug 2011 04:39:40 -0000</lastBuildDate><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-292299661</link><description>&lt;p&gt;how to get only two precision after decimal in java..eg.3.8989E-34,MUST BE MADE TO 3.89&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">madu</dc:creator><pubDate>Sun, 21 Aug 2011 04:39:40 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-261377700</link><description>&lt;p&gt;omg i have been working on this FOREVER and none of the many suggestions worked. But first i should tell you that every single step I had huge problems but I never gave up because I have successfully configured a few years ago when I first tried to teach myself Java. Anyway, I have made many mistakes configuing the CLASSPATH so I really didn't know what to fix. After finally getting it to compile successfully (creating the class file) it still wouldn't work. Finally I tried this...and I didn't see it anywhere in this blog so I hope it helps everyone after me. In addition to what you have in the CLASSPATH (int the envir. varables)add the following without deleting anything you already have there:&lt;/p&gt;&lt;p&gt;.;C:J24work&lt;/p&gt;&lt;p&gt;instead of J24work you should enter the exact path to where you are puting you .java and .class files which is probably different from where you JDK is for some people.&lt;/p&gt;&lt;p&gt;I truly hope I explained this well and it helps someone.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Shawna</dc:creator><pubDate>Fri, 22 Jul 2011 19:43:05 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-230368870</link><description>&lt;p&gt;waw, thanks very much! You are really helpful! Your recipe is delicious! LOL&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">yeyeye</dc:creator><pubDate>Mon, 20 Jun 2011 12:09:35 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-213726778</link><description>&lt;p&gt;Watch out the case sensitivity like class hello, file hello etc&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kaucuk</dc:creator><pubDate>Sun, 29 May 2011 05:29:59 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-209340076</link><description>&lt;p&gt; frustated wit this problem and got solution&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">M Bhagyabhushan</dc:creator><pubDate>Sun, 22 May 2011 07:12:45 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-202904671</link><description>&lt;p&gt;Hi I have this error in my loginserver  Exception in thread "main" java.lang.NoClassDefFoundError: LOGIN_HOSTNAME i need help , what should I add in my CLASSPATH?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pam</dc:creator><pubDate>Fri, 13 May 2011 02:55:07 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-175305737</link><description>&lt;p&gt;setting path till again give same error no class deffound&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Popujari</dc:creator><pubDate>Wed, 30 Mar 2011 23:34:37 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-174581142</link><description>&lt;p&gt;thank u sir thank u , u saved my receding hairline&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">dhruv</dc:creator><pubDate>Tue, 29 Mar 2011 21:31:18 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-171891415</link><description>&lt;p&gt;This was really saved my problem. I changed the CLASSPATH variable to add the current directory. Which is ".", This saved me my life. Thanks for the valuable post.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jagadish_t</dc:creator><pubDate>Fri, 25 Mar 2011 15:57:05 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-171510007</link><description>&lt;p&gt;Sorry class file was not getting generated previously&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">C Bala86</dc:creator><pubDate>Fri, 25 Mar 2011 06:02:10 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-171509868</link><description>&lt;p&gt;I got this error in my eclipse. I found there was  class file getting generated for the project. Reason was no default java builder defined for the project.Opened the .project file and added the default java builder definition. Now it works fine&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">C Bala86</dc:creator><pubDate>Fri, 25 Mar 2011 06:01:11 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-168338129</link><description>&lt;p&gt;omg... nothing work ;( what i need to do!? HELP!!!!!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rybka2323</dc:creator><pubDate>Sat, 19 Mar 2011 18:20:56 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-166032317</link><description>&lt;p&gt;sep path&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Rajroy 002</dc:creator><pubDate>Tue, 15 Mar 2011 06:14:20 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-165904035</link><description>&lt;p&gt;hello help me out plz ........m tryng to run a java prog which is having connectivity with mysql  i pasted the driver in java\lib\ext folder evn its is giving error that driver not found exception in main.........&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">awsmvini</dc:creator><pubDate>Mon, 14 Mar 2011 23:55:41 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-165903449</link><description>&lt;p&gt;Hey hi well i m trying to run a simple prog that having a object of another class but it is giving error the symbol not found evn the class file is in same directory.........&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">vinay singh</dc:creator><pubDate>Mon, 14 Mar 2011 23:53:23 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-164182156</link><description>&lt;p&gt;It is very nice...gives the solution exactly&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Onkdurga</dc:creator><pubDate>Fri, 11 Mar 2011 12:02:48 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-162956938</link><description>&lt;p&gt;Apparently it matters in which order you put the class-files when creating your jar-file. If you're using superclasses/subclasses you have to put the superclass first in the command! Like so: "jar cvmf manifest.txt myfile.jar SuperClass.class SubClass.class TestClass.class"&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Magnus</dc:creator><pubDate>Wed, 09 Mar 2011 08:47:30 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-161813874</link><description>&lt;p&gt;i have a problem&lt;br&gt;build.xml for jboss aop has an error&lt;/p&gt;&lt;p&gt;"" Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/util/file/ArchiveBrowser$Filter ""&lt;/p&gt;&lt;p&gt;can any body plz help what s the problem ???&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Imran Sharif</dc:creator><pubDate>Mon, 07 Mar 2011 11:14:27 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-161705869</link><description>&lt;p&gt;Thank you.  This was what i was looking for.&lt;/p&gt;&lt;p&gt;in commandprompt go to the global path of your application:&lt;br&gt;d:\applications\myApplication\bin&lt;/p&gt;&lt;p&gt;execute your application&lt;br&gt;d:\applications\myApplication\bin&amp;gt;java -cp  com.package.model.myClass&lt;/p&gt;&lt;p&gt;change the JAVA_HOME to&lt;br&gt;d:\applications\myApplication\bin&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">TomDh</dc:creator><pubDate>Mon, 07 Mar 2011 06:21:19 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-161348871</link><description>&lt;p&gt;.:      period semicolon  &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chiragpatel</dc:creator><pubDate>Sun, 06 Mar 2011 13:25:42 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-161347974</link><description>&lt;p&gt;just put .; in ur class path and it ll work&lt;/p&gt;&lt;p&gt;this is message from GOD&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chiragpatel</dc:creator><pubDate>Sun, 06 Mar 2011 13:24:40 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-158972332</link><description>&lt;p&gt;THIS IS A MESSAGE FOR EVERYONE WHO STILL HAVE THIS PROBLEM&lt;/p&gt;&lt;p&gt;I'm sure you've tried everything written in this forum. After looking for an answer at Oracle's website, I've finally found it.&lt;/p&gt;&lt;p&gt;WHAT YOU'VE GOT TO DO is to stand in the src folder of your proyect, NOT IN YOUR PACKAGE. then, use this syntax:&lt;/p&gt;&lt;p&gt;java -cp . PACKAGE.CLASS&lt;/p&gt;&lt;p&gt;remember, your cd must be your proyect/src and follow the syntax above.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Luis Adrián Ferreyra</dc:creator><pubDate>Wed, 02 Mar 2011 09:30:25 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-158143219</link><description>&lt;p&gt;Can any one suggest me how to proceed with this. i tried all possible methods.&lt;br&gt;On clicking on one button, it should print on the console. it should keep printing until another button is pressed&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">L_savitha</dc:creator><pubDate>Tue, 01 Mar 2011 01:56:20 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-157843767</link><description>&lt;p&gt;Thanx ..........this worked !!!!!!!!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">b_java</dc:creator><pubDate>Mon, 28 Feb 2011 15:42:52 -0000</pubDate></item><item><title>Re: Java: Exception in thread main java.lang.NoClassDefFoundError</title><link>http://www.tech-recipes.com/rx/826/java-exception-in-thread-main-javalangnoclassdeffounderror/#comment-157538324</link><description>&lt;p&gt;no lib C:\Program files\java\jdk1.6.xxxxx\bin&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Deathdragon6</dc:creator><pubDate>Mon, 28 Feb 2011 01:08:44 -0000</pubDate></item></channel></rss>