java中资源获取

Posted rivsidn

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java中资源获取相关的知识,希望对你有一定的参考价值。

安装java

sudo apt-get install default-jdk

获取doc

$dpkg -l | grep jdk
ii  default-jdk                                   2:1.8-56ubuntu2                               amd64        Standard Java or Java compatible Development Kit
ii  default-jdk-headless                          2:1.8-56ubuntu2                               amd64        Standard Java or Java compatible Development Kit (headless)
ii  openjdk-8-doc                                 8u191-b12-2ubuntu0.16.04.1                    all          OpenJDK Development Kit (JDK) documentation
ii  openjdk-8-jdk:amd64                           8u191-b12-2ubuntu0.16.04.1                    amd64        OpenJDK Development Kit (JDK)
ii  openjdk-8-jdk-headless:amd64                  8u191-b12-2ubuntu0.16.04.1                    amd64        OpenJDK Development Kit (JDK) (headless)
ii  openjdk-8-jre:amd64                           8u191-b12-2ubuntu0.16.04.1                    amd64        OpenJDK Java runtime, using Hotspot JIT
ii  openjdk-8-jre-headless:amd64                  8u191-b12-2ubuntu0.16.04.1                    amd64        OpenJDK Java runtime, using Hotspot JIT (headless)
ii  openjdk-8-source                              8u191-b12-2ubuntu0.16.04.1                    all          OpenJDK Development Kit (JDK) source files

$sudo apt-cache search openjdk-8
default-jdk - Standard Java or Java compatible Development Kit
default-jdk-doc - Standard Java or Java compatible Development Kit (documentation)
default-jdk-headless - Standard Java or Java compatible Development Kit (headless)
default-jre - Standard Java or Java compatible Runtime
default-jre-headless - Standard Java or Java compatible Runtime (headless)
openjdk-8-dbg - Java runtime based on OpenJDK (debugging symbols)
openjdk-8-demo - Java runtime based on OpenJDK (demos and examples)
openjdk-8-doc - OpenJDK Development Kit (JDK) documentation
openjdk-8-jdk - OpenJDK Development Kit (JDK)
openjdk-8-jdk-headless - OpenJDK Development Kit (JDK) (headless)
openjdk-8-jre - OpenJDK Java runtime, using Hotspot JIT
openjdk-8-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless)
openjdk-8-source - OpenJDK Development Kit (JDK) source files
openjdk-8-jre-dcevm - Alternative VM for OpenJDK 8 with enhanced class redefinition
openjdk-8-jre-zero - Alternative JVM for OpenJDK, using Zero/Shark
uwsgi-plugin-jvm-openjdk-8 - Java plugin for uWSGI (OpenJDK 7)
uwsgi-plugin-jwsgi-openjdk-8 - JWSGI plugin for uWSGI (OpenJDK 7)
uwsgi-plugin-ring-openjdk-8 - Closure/Ring plugin for uWSGI (OpenJDK 7)
uwsgi-plugin-servlet-openjdk-8 - JWSGI plugin for uWSGI (OpenJDK 7)
openjdk-8-jre-jamvm - Transitional package for obsolete JamVM for OpenJDK

 

sudo apt-get install openjdk-8-doc

获取javasrc

sudo apt-get install openjdk-8-source

 

具体的文件需要到 /usr/ 下边找

$cd /usr/
//找文档 $find ./ -name openjdk-8-doc
//找源码
$
find ./ -name src.zip

 

获取jdk源代码

sudo apt-get install mercurial

hg clone http://hg.openjdk.java.net/jdk8u/jdk8u openjdk8

 

以上是关于java中资源获取的主要内容,如果未能解决你的问题,请参考以下文章

day06-jsp

java 获取片段中的活动数据

java获取随机时间的源码片段

如何从 Firebase 获取数据到 Recyclerview 中的片段?

Jsp获取Java的重定向赋值(String)

Java——JSP/九大内置对象/四大域对象