gpt4 book ai didi

java - 我在 Mac 上安装的 Java 11 中的 derby.jar 文件在哪里?

转载 作者:行者123 更新时间:2023-11-30 06:42:13 26 4
gpt4 key购买 nike

我刚刚读了here ,Java DB(分别是 Derby)随 JDK 一起提供。

我的 Mac 上安装的 Java 中的 derby.jar 在哪里?

终端命令

/usr/libexec/java_home

打印

/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home

ls -halt /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home

drwxr-xr-x 10 root wheel 320B 6 Okt 14:29 .
drwxr-xr-x 5 root wheel 160B 6 Okt 14:29 ..
-r--r--r-- 1 root wheel 160B 6 Okt 14:29 README.html
drwxr-xr-x 34 root wheel 1,1K 6 Okt 14:29 bin
drwxr-xr-x 7 root wheel 224B 6 Okt 14:29 conf
drwxr-xr-x 9 root wheel 288B 6 Okt 14:29 include
drwxr-xr-x 72 root wheel 2,3K 6 Okt 14:29 jmods
drwxr-xr-x 72 root wheel 2,3K 6 Okt 14:29 legal
drwxr-xr-x 57 root wheel 1,8K 6 Okt 14:29 lib
-rw-r--r-- 1 root wheel 1,2K 6 Okt 14:29 release

我能在主文件夹中找到的唯一 jar 文件如下:

find . -name '*.jar'
./lib/jrt-fs.jar

感谢您的帮助!

附言:

java -version

打印

java version "11.0.1" 2018-10-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode)

最佳答案

从 JDK 9 开始,Derby 是 no longer included在 JDK 中。来自migration guide :

JavaDB, which was a rebranding of Apache Derby, isn’t included in JDK 9.

JavaDB was bundled with JDK 7 and JDK 8. It was found in the db directory of the JDK installation directory.

You can download and install Apache Derby from Apache Derby Downloads.

关于java - 我在 Mac 上安装的 Java 11 中的 derby.jar 文件在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53911999/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com