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

故事扮演 提交于 2019-12-11 01:08:43

问题


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

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

The terminal command

/usr/libexec/java_home

prints

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

and

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

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

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

Thank you for your help!

P.S.:

java -version

prints

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)

回答1:


As of JDK 9, Derby is no longer included in the JDK. From the 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.



来源:https://stackoverflow.com/questions/53911999/where-is-the-derby-jar-file-within-my-java-11-installation-on-mac

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!