Hi, I get an error message "Exception in thread main java.lang.NoClassDefFoundErr:". I downloaded mysql connector/j for Java and extracted to a directory. I think something wrong with class path settings. Can you please provide more info. to rectify this error. I am using windows 2000.
tell the name of class ur program is trying to find
write here all the lines of Exception
Joined: May 18, 2004
Hi Sunil, That is the full source code of my program. According to you I have missed out something. Sorry I have no idea about the missing part. My only requirement is to connect to MySql database through java (JDBC).
I would appreciate if you can correct this program.
Joined: Aug 04, 2004
Program looks good, we only want to now which class it cannot find.
Sunil Kumar Gupta
Joined: Aug 26, 2005
Let me clear my point, when u r running this program,
Originally posted by Indika Hewage: [QB]I added class path as follows into system variable. Variable name :CLASSPATH and Variable value : "C:\Program Files\Java\jdk1.5.0\bin;E:\JavaApp\mysql-connector-java-3.1.10-bin.jar"
You need to add this jar files into the setDomainEnv.cmd( bea_home\weblogic\activerdomaindirecotory\setDomainEnv.cmd) to know the weblogic server, not sure your weblogic server is pickingup the env classpath
this should work if you put this jar file into the weblogic classpath