You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Medha Parathasarathy <me...@fastmail.fm> on 2006/02/12 15:28:39 UTC

jdbc with tomcat5 and mysql - fedora core4

Hi,

I am trying to migrate my application from fedora core 3 to 4. tomcat 5
is working, mysql is working.  I had downloaded the latest version of
jdbc driver from mysql.com.
mysql-connector-java-3.1.12-bin.jar.

I had copied the same to lib directory of webapps/ROOT where the
application was copied to make it work.

I had taken help from a site to create jdbc.java file to compile and run
to see whether the connection is working.
http://www.dantullis.com/howtos/rh9_apache2_tomcat5_mysql413_howto6.html

While compiling [ java as it is coming with fc4 ] no error is given but
tried to run, it gives the following error.

[root@www ROOT]# java ./jdbc
Exception in thread "main" java.lang.NoClassDefFoundError: ./jdbc
   at gnu.java.lang.MainThread.run() (/usr/lib64/libgcj.so.6.0.0)
Caused by: java.lang.ClassNotFoundException: ./jdbc
   at java.lang.Class.forName(java.lang.String, boolean,
   java.lang.ClassLoader) (/usr/lib64/libgcj.so.6.0.0)
   at gnu.java.lang.MainThread.run() (/usr/lib64/libgcj.so.6.0.0)
[root@www ROOT]#

can some body help me.

Regards


Sarathy

-- 
http://www.fastmail.fm - One of many happy users:
  http://www.fastmail.fm/docs/quotes.html


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org