In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to install Java and JDK under deepin, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
1. What is Java:
Java is the general name of Java object-oriented programming language and Java platform introduced by Sun Microsystems in May 1995. It was jointly developed by James Gosling and colleagues and officially launched in 1995.
Java is a typical object-oriented language, released later than C++, some grammar and ideas also refer to C++.
Java is designed to be as close as possible to Clearinghouse in order to reduce people's learning costs. It can be said that Java grammar is a "pure" version of C++ grammar, without header files, pointer operations (nor pointer syntax), structure, union, operator overloading, virtual base classes, and so on.
Java is divided into three systems:
JavaSE (J2SE) (Java2 Platform Standard Edition,java platform Standard Edition)
JavaEE (J2EE) (Java 2 Platform,Enterprise Edition,java platform Enterprise Edition)
JavaME (J2ME) (Java 2 Platform Micro Edition,java platform Micro Edition)
Application of 2.Java:
Web development: Java is very suitable for developing large-scale enterprise websites
Android development: almost all APP on Android phones is developed in Java.
Client development: Java can also be used to develop software on computers
Embedded applications: used to develop software that runs in small electronic products.
3.Java development environment:
We can develop and compile java in a variety of mainstream operating systems: Windows, MacOS, Linux (I learn java on debain).
Java development tools: Java JDK, Java runtime environment (JRE), Intellij idea or Eclipse IDE (optional)
Build the 4.Java development environment:
JDK (Java Development Kit):
If you are only installing JDK8, enter the command in the command window:
Sudo apt installoracle-java8-set-default, it will automatically download, install and configure the environment variables.
If you are installing JDK10, the latest version of JDK, you need to download JDK (.tar.gz) on the Oracle website http://www.oracle.com/technetwork/java/javase/downloads/index.html.
Extract it (- C is followed by the path to which you want to extract it):
Sudo tar-zxvf ~ / Downloads/jdk-8u45-linux-i586.tar.gz-C / usr/lib
Configure the JDK environment variable:
According to the official website:
Starting with version 8u40, the JDK installation is integrated with the alternatives framework and after installation, the alternatives framework is updated to reflect the binaries from the recently installed JDK. Java commands such as java, javac, javadoc, and javap can be invoked from the command line.
So there is no need to modify the / etc/profile file at all, as described by most websites, just run the following two commands in shell:
Sudo update-alternatives-install / usr/bin/java java / usr/share/jdk-10.0.1/binjava 1000
Sudo update-alternatives-install / usr/bin/javac javac / usr/share/jdk-10.0.1/binjavac 1000
Which is followed by the absolute path of the JDK home directory installed by yourself.
Because OpenJDK is also installed on the system, also execute the following command to set the installed version to the default JDK, first check the JAVA version and priority in shell with the following command:
Update-alternatives-display java
Then execute the command to select the JAVA version:
Update-alternatives-config java
After execution, all the JDK in the system will be listed, allowing you to choose one as the default.
Finally, execute java-version to confirm that the JDK installation is successful:
The above is all the contents of the article "how to install Java and JDK under deepin". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow 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: 211
*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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.