MariaDB and Java: How can I create a symbolic link to MariaDB with java?
Removed before it was archived.
Edited 31 Mar 2021. We only hold this version.
About this post
- Posted
- Archived
- Deleted on
- Edited
- Score
- 3 · 62% up
- Kind
- Text
- ID
- mgui2e
Removed before it was archived.
Edited 31 Mar 2021. We only hold this version.
7 comments
The information in the wiki is outdated. Have a look at the docs for the connector: https://mariadb.com/kb/en/installing-mariadb-connectorj
If you're developing, it would be best to use on of the first two methods. If you're running some software (most likely Matlab?) download the
.jar-file and put it in the corresponding classpath of your application.I'm trying to write Java code with JDBC. How do I go about using maven or gradle? Can I install a system-wide integration of JDBC? Sorry, I'm new to Java.
I'm not sure, but I think this is no longer possible or at least discouraged after java 9.
But you still should be able to just put the file in your classpath of your project.
No, maven will automatically bundle the required dependencies in the jar or war if you've configured it to do so. All you have to do is specify the dependency in the maven configuration file.
I work with java on Arch. The only package I've installed is openjdk https://archlinux.org/packages/extra/x86_64/jdk11-openjdk/. BTW, what's the output of java -v command?
java -v is not a valid flag for running java for me. However, "java --version" will output:
Why would you tinker with the jre? Build your application using maven or gradle and handle it like a regular dependency.