Home » Developer & Programmer » JDeveloper, Java & XML » Exception in thread main java.lang.NoClassDefFoundError:
Exception in thread main java.lang.NoClassDefFoundError: [message #91992] Wed, 14 January 2004 18:42 Go to next message
muraleedharan vp
Messages: 1
Registered: January 2004
Junior Member
I am using Redhat Linux 9, J2sdk1.4.2_02 and Postgresql 7.3.2-3. Using a small java program (TestJava.java) I tried to connect Postgresql. The java program compiled without no error. While running the program I get the following error message. Exception in thread "main" java.lang.NoClassDefFoundError: TestJava. I have set CLASSPATH to /usr/share/pgsql/pg73jdbc3.jar. I tried by using pg73jdbc1.jar,pg73jdbc2.jar and also pg73b1jdbc3.jar, pg73b1jdbc2.jar, pg73b1jdbc1.jar but each and every time it shows the same error. Please help me to clear this error.
My email ID muralivp@sancharnet.in

Thank You.
Re: Exception in thread main java.lang.NoClassDefFoundError: [message #92404 is a reply to message #91992] Fri, 02 July 2004 04:04 Go to previous message
Pratibha
Messages: 29
Registered: November 2001
Junior Member
In my project it is required to read a excelsheet
i am using POI and i am including jar file of poi
although the class gets compiled but at runtime it
throws Exception in thread main java.lang.NoClassDefFoundError.is there any problem with classpath
the syntax for classpath is
set classpath=C:jdk1.3poi-2.0-final-20040126.jar;
i am using windows 98 this path is set in AutoExe.Bat file

I have downloaded the jar file from the following link
http://www.ociweb.com/jnb/jnbMar2004.html
thanks
pratibha
Previous Topic: jdbc driver and jdk version best practice
Next Topic: How to install JDBC
Goto Forum:
  


Current Time: Thu Apr 25 01:29:14 CDT 2024