- Learning Continuous Integration with Jenkins(Second Edition)
- Nikhil Pathania
- 131字
- 2021-07-02 21:18:38
Installing Java
Follow these steps to install Java:
- Move to the /tmp directory and download Java:
cd /tmp
wget -O java_8.131.rpm \
http://javadl.oracle.com/webapps/download/AutoDL? \
BundleId=220304_d54c1d3a095b4ff2b6607d096fa80163
- Next, install Java. The following command will install the JRE:
sudo rpm -ivh java_8.131.rpm
- To set the JAVA_HOME environment variable, first get the Java installation's location. Do this by executing the following command:
sudo alternatives --config java
- The previous command will print the list of Java applications installed on your machine, along with their installation paths. Copy the Java path that appears on your Terminal:
There is 1 program that provides 'java'. Selection Command ----------------------------------------------- *+ 1 /usr/java/jre1.8.0_131/bin/java
- Add the Java path (the one that you copied earlier) inside the /etc/environment file using the following command:
sudo sh \
-c "echo JAVA_HOME=/usr/java/jre1.8.0_131 >>
/etc/environment"
推薦閱讀
- 全屋互聯:智能家居系統開發指南
- Mastering ElasticSearch
- 大學計算機應用基礎實踐教程(Windows 7+Office 2013)
- SOA實踐者說
- Linux Shell編程從入門到精通(第2版)
- Linux就該這么學
- INSTANT Migration from Windows Server 2008 and 2008 R2 to 2012 How-to
- Linux應用大全 基礎與管理
- Zabbix監控系統之深度解析和實踐
- Raspberry Pi入門指南
- CSS揭秘
- VMware vSphere 5.1 Cookbook
- Responsive Web Design with AngularJS
- Website Development with PyroCMS
- Gradle Effective Implementations Guide(Second Edition)