You are not logged in.

#1 2018-11-03 00:46:41

btwiusearch
Member
Registered: 2018-11-03
Posts: 2

[SOLVED] /usr/lib/jvm/default-runtime/jre directory does not exist

I've installed the jre-openjdk 11.0.1.u13-2 and mariadb-jdbc 2.3.0-2 packages.
I commented out skip-networking and added the line bind-address = * to /etc/mysql/my.cnf according to JDBC and MySQL, but I'm not able to link the drivers to my JRE's external libraries directory.

$ ln -s /usr/share/java/mariadb-jdbc/mariadb-java-client.jar /usr/lib/jvm/default-runtime/jre/lib/ext
ln: failed to create symbolic link '/usr/lib/jvm/default-runtime/jre/lib/ext': No such file or directory

The directory /usr/lib/jvm/default-runtime/jre seems to be missing. Should I create it myself ?

Last edited by btwiusearch (2018-11-03 22:32:15)

Offline

#2 2018-11-03 10:44:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 13,747

Re: [SOLVED] /usr/lib/jvm/default-runtime/jre directory does not exist

you don't have the traditional JRE/JDK distinction anymore with java9+ all relevant binaries for the traditional development are part of the JDK now (and application developers are expected to utilize the module functionality to ship their applications with their own customized mini "JREs")

Offline

#3 2018-11-03 22:31:20

btwiusearch
Member
Registered: 2018-11-03
Posts: 2

Re: [SOLVED] /usr/lib/jvm/default-runtime/jre directory does not exist

thank you V1del never knew about that. i ended up installing it from maven repo.

Offline

#4 2021-05-04 04:58:27

FenrisLycaon
Member
Registered: 2021-05-04
Posts: 2

Re: [SOLVED] /usr/lib/jvm/default-runtime/jre directory does not exist

@V1del I am new here, So How exactly do I setup my JDBC connection?

Offline

#5 2021-05-04 06:46:25

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 13,747

Re: [SOLVED] /usr/lib/jvm/default-runtime/jre directory does not exist

By installing the  it manually from external sources and/or with build systems like maven/gradle etc. or just drop the "jre" from the path.

If this is insufficient please open a new thread detailing your issue, this one is three years old and solved.

Closing.

Offline

Board footer

Powered by FluxBB