Hello everyone,
I have some trouble with the ngdbc.jar driver from the HANA client. This file is supposed to handle all JDBC connections to HANA. It's working perfectly in my Java application on Windows. On Linux I can start its inbuilt GUI via "java -jar ngdbc.jar" and it works there as well. But it is not working is when I run the same Java application on Linux and I'm wondering why? Maybe you can help.
Here is a part of the code:
Connection con = DriverManager.getConnection("jdbc:sap://" + servername + ":3" + instancename + "15/", username, password);
On Windows this works, on Linux no matter what I try either this exception is thrown:
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
Or this one:
java.sql.SQLException: No suitable driver
And "DriverManager.getDriver("jdbc:sap://")" returns no entries when running on Linux, but on Windows.
Hope somebody has worked with this driver in combination with Java and Linux already and can give a hint.
Thanks,
Markus