- GeoServer Beginner's Guide(Second Edition)
- Stefano Iacovella
- 226字
- 2021-07-08 09:21:10
Checking the presence of Java on your Linux machine
We will check the JRE/JDK installation from the command line as follows:
- Log in to your server and run this command:
~ $ sudo update-alternatives --config java
- If there is no Java properly configured, you should see the following output:
update-alternatives: error: no alternatives for java.
- In case there is only one Java installed, the output will be similar to the following command line:
There is only one alternative in link group java (providing
/usr/bin/java):
/usr/lib/jvm/java-8-openjdk-i386/jre/bin/java Nothing to configure.
- If you have more than one Java, for example, Oracle JRE and OpenJDK, the output will be similar to this:
There are 2 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status ----------------------------------------------------------------- * 0 /usr/lib/jvm/java-8-openjdk-i386 1081 auto mode
/jre/bin/java 1 /opt/java/jre1.8.0_121/bin/java 1 manual
mode 2 /usr/lib/jvm/java-8-openjdk-i386 1081 maunal
/jre/bin/java mode
Press <enter> to keep the current choice[*], or
type selection number:
We determined if a Java installation is already present on your machine. As we mentioned earlier, this is a basic requirement for our installation. We had the opportunity to check if the installed release, in case we found it, is suitable for running GeoServer, which is a version 8.x.
Now we will go through the installation of JRE and the servlet container. You can skip the following steps in case you already found a JRE/JDK installed.
推薦閱讀
- 手機(jī)安全和可信應(yīng)用開發(fā)指南:TrustZone與OP-TEE技術(shù)詳解
- Mastering Zabbix(Second Edition)
- ReSharper Essentials
- JavaScript+DHTML語法與范例詳解詞典
- vSphere High Performance Cookbook
- Spring Boot+Spring Cloud+Vue+Element項(xiàng)目實(shí)戰(zhàn):手把手教你開發(fā)權(quán)限管理系統(tǒng)
- 數(shù)據(jù)結(jié)構(gòu)(Python語言描述)(第2版)
- Python進(jìn)階編程:編寫更高效、優(yōu)雅的Python代碼
- C語言課程設(shè)計(jì)
- Learning Vaadin 7(Second Edition)
- Python之光:Python編程入門與實(shí)戰(zhàn)
- 速學(xué)Python:程序設(shè)計(jì)從入門到進(jìn)階
- 深入理解Java虛擬機(jī):JVM高級(jí)特性與最佳實(shí)踐
- Apache Solr for Indexing Data
- 精通Oracle 12c 數(shù)據(jù)庫(kù)管理