java - install JDBC on Amazon E2 server getting error "com.mysql.jdbc" -
i have developed java aplication use jdbc. on different ubuntu computers. every thing works fine. when try run program on bitnami amazon e2 server part course me trouble.
try { class.forname("com.mysql.jdbc.driver"); } catch (classnotfoundexception e) { system.err.println(e.getmessage()); return; }
it throws message "com.mysql.jdbc.driver"
i tried run following command works fine on ubuntu desktop installation openjdk.
export clasexport classpath=:/usr/share/java/mysql-connector-java.jar:/usr/share/java/mysql-connector-java.jar
but seams folders not same on e2 server. how find right path?
add driver jar classpath.
Comments
Post a Comment