Skip to content

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.

3 points7 comments
Open on Reddit
About this post
Posted
Archived
Deleted on
Edited
Score
3 · 62% up
Kind
Text
ID
mgui2e

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.

3 points

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.

0 points

Can I install a system-wide integration of JDBC?

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.

1 points

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.

1 points

Why would you tinker with the jre? Build your application using maven or gradle and handle it like a regular dependency.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.