I want to use MySQL with J2EE, I'v already put mm.my-2.0.12-bin.jar file and org folder to %J2EE_HOME%\lib\system , i also set CLASSPATH to the directory. What else should i do?
Try extracting the contents of the jar file. Amongst these you should find a jar file called "mysql_uncomp.jar". Try adding this to your classpath. I remember having a similar problem.
then,
Second step:
On command line, type something similar(as you prefer)
>j2eeadmin -addJdbcDriver jdbc/Mysql org.gjt.mm.mysql.Driver
>j2eeadmin -addDataSource jdbc/Mysql org.gjt.mm.mysql.jdbc2.optional.MysqlDataSource
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.