Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

Java / MySQL on remote server

0

32 views

Ok, sorry if this question is stupid. I followed this tutorial: http://www.youtube.com/watch?v=E30_-pQGQXs. Now that I have it compiling in Eclipse, when I upload it to a remote server, how do I get it to work with the jdbc library?

If I try to execute Main.class on a remote server, I get

Exception in thread "main" java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

How do I include the jar or get rid of this error?

asked June 14, 2011 8:33 pm CDT
Tom
posted via StackOverflow

1 Answer

0
 

You have to make sure to include the mysql JDBC driver in the classpath on the remote server.

Some app servers have a specific folder to place 3rd party files that get included in the classpath.

Are you using an app server or is this a custom application?

answered June 14, 2011 9:25 pm CDT

Your answer

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect

Preview
Similar questions