Mac上的Java 11安装中的derby.jar文件在哪里? [英] Where is the derby.jar file within my Java 11 installation on Mac?

查看:283
本文介绍了Mac上的Java 11安装中的derby.jar文件在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是在此处中阅读了Java DB (分别是Derby)与JDK一起提供。

I just read here, that the Java DB (respectively Derby) is shipped with the JDK.

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

Where is the derby.jar within the Java installation on my Mac?

终端命令

/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

我可以在Home文件夹中找到唯一的 jar 文件,如下所示:

The only jar file within the Home folder I can find is the following:

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

谢谢

PS:

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 不再包含 JDK。从迁移指南

As of JDK 9, Derby is no longer included in the JDK. From the migration guide:


JavaDB是Apache Derby的重新命名,不包含在JDK 9中。

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

JavaDB与JDK 7和JDK 8捆绑在一起。可以在JDK安装目录的db目录中找到。

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

您可以下载并从 Apache Derby下载安装。

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

这篇关于Mac上的Java 11安装中的derby.jar文件在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆