not able to connect to mysql from Cytoscape application

69 views
Skip to first unread message

girishanem

unread,
Sep 18, 2012, 1:57:30 AM9/18/12
to cytoscap...@googlegroups.com
Hi,

I am trying to connect to mysql DB from my app. when i am executing the code as a java application in ECLIPSE, it is connecting to the DB. But when exported the code to a JAR file and trying to test the code in cytoscape, while loading the MySQL drivers jar into cytoscape it is giving a error and after that when executing the App my application is encountering an error "java.lang.ClassNotFoundException: com.mysql.jdbc.Driver". Can anyone explain me the reason for this error. Am i missing some configuration?

Regards,
Girish Anem

girishanem

unread,
Sep 18, 2012, 2:51:22 AM9/18/12
to cytoscap...@googlegroups.com
Hi,

Actually while loading the app i am not getting any errors or warnings but on using the app, i am not able to connect to mysql db. i am getting ClassNotFoundException. HOw to configure the app to connect to the mysql DB?

Regards,
Girish Anem

girishanem

unread,
Sep 18, 2012, 6:01:34 AM9/18/12
to cytoscap...@googlegroups.com
Hi,

Please ignore this thread, i managed to configure the MySQL connection, i checked CytoSQL project to understand the concept, it is due to classpath problems. i copied mysql driver jar file content to my project folder, now locally mysql drivers are available without configuring the classpath.

Thanks,
Regards,
Girish Anem

On Tuesday, 18 September 2012 11:27:30 UTC+5:30, girishanem wrote:
Reply all
Reply to author
Forward
0 new messages