Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Cubieboard 3 how to install the java environment

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "Cubieboard 3 how to install java environment", the content is simple and easy to understand, organized clearly, I hope to help you solve doubts, let Xiaobian lead you to study and learn "Cubieboard 3 how to install java environment" this article bar.

Cubieboard 3

Installing Java Environment

Download arm jdk

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-arm-downloads-2187472.html

The requested URL/home/was not found on this server.

implementation

sudo tar zxvf jdk - 8 - *.tar.gz -C /opt

Wait until decompression is complete.

sudo update -alternatives --install "/usr/bin/java" "java" "/opt/jdk1.8.0/bin/java" 1

test

Java environment installed successfully

Here is how to install Oracle JDK8 using apt-get

echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list

echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886

apt-get update

apt-get install oracle-java8-installer

undefined

Oracle's Java 8 installer requires you to accept an Oracle license when installing. If you want to automatically accept the license, you can use the following command:

echo oracle -java7 -installer shared /accepted -oracle -license -v1 - 1 select true | sudo /usr /bin /debconf -set -selections

Java 8 environment variables and jdk8 are automatically set at installation time as the default JDK. Use the following command:

sudo apt-get install oracle-java8-set-default

The above is "Cubieboard 3 how to install java environment" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report