Mysql jdbc driver fedora2/10/2023 ![]() ![]() ![]() I only had /usr/java/jre1.6.0_20/lib/ext NOT /usr/java/jre/lib/ext which is what JDBC needed to work correctly. Finally, the directory where I installed java did not have /jre/lib/ext. ![]() I typed “which java” and I discovered that the default java location my system used was (/usr/bin/java). I did not have a $JAVA_HOME variable setĢ. jar file to /usr/java/jre1.6.0_20/lib/ext/) and I still discovered a few problems or things that I was missing:ġ. I had to find where I installed java which was in (/usr/java/jre1.6.0_20). JDBC looks for the mysql-connector-java-x.x.x-bin.jar in jre/lib/ext. I still could not get my JDBC connector to work. Doing this will allow the java interpreter to find the driver. You can then copy the mysql-connector-java-version-bin.jar file in this directory to the java jre/lib/ext directory. Where version is the connector version number. To do this, you have to enter this command on Linux:Īt the end of these commands, the files would be placed in a folder called: mysql-connector-java-version. To use the Connector-J, you need to unzip and untar it. Remeber the name that you used when you downloaded it.ĭownloaded file name is on /usr/local/ To use MySQL with your java programs, you need to download the MySQL Connector-J from their website.ĭownload the tar.gz file and place it on a directory that you can access. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |