1

I have put the mysql-connector-java-5.1.34-bin.jar in /usr/share/java directory. Added that path in my CLASS_PATH. But I get the error "java.lang.ClassNotFoundException: com.mysql.jdbc.Driver". Where should I place the mysql-connector jar file.

3
  • You should post that question in java support. Mar 28, 2021 at 14:57
  • What is your Ubuntu version?
    – N0rbert
    Mar 28, 2021 at 15:02
  • ubuntu version 18.04
    – user259561
    Mar 29, 2021 at 5:46

1 Answer 1

0

On Ubuntu 16.04 LTS and 18.04 LTS you can install all needed files by:

sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install libmysql-java

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .