use the source command to make it effective source ~/. Profile2.4 Change the default JDK version to see the Java version and priority of the system installedsudo update-Alternatives--dispaly Javathe system is installed by default only OPEN-JDK, and the priority is 1051, set a higher priority to Oracle's JDK, such as 1200, in the terminal window to execute the following command:sudo update-Alternatives--
"
Design PATTERNS: Reusable elements of object-oriented software: Also known as "Gang of four" books, and GOF
UNIX and Linux Systems Management Handbook, 4th edition
Tools for programming, WEB development and DEVOPS News, tutorials and beginner experts
Indradhanush tutotials: Write a Unix Shell
See someone else's code
Liveedu.tv: Screen recordings of people who build apps, websites, games, and more
Twitch.tv:twitch Programming Community
What programmers should know
Programmer Competency Matrix P
This evening, I attended booking's iOS post-line written test, which concludes with a simple summary.About the test content:Booking uses Hackerrank as the test platform, with a total test duration of 75 minutes and a total of 4 questions.I was nervous before the test because, based on the previous experience with Microsoft Online test, there should be some complex algorithmic questions. But in fact, the booking test of the topic, the first three quest
Source: Hackerrank Base time limit: 1 seconds space limit: 131072 KB score: 160 Difficulty: 6-level algorithm problem collection focus on giving an integer array A, you can change any number to any positive integer, eventually making the entire array strictly incremented and all positive integers. What are the minimum number of changes to ask? InputLine 1th: A number N indicates the length of the sequence (1 OutputThe minimum number of outputs require
In C + + programming, there is a less common, but actually very useful input conversion tool class called StringStream. Say it's not so common, it's because it seems like the general C + + combat project isn't going to use it very much, and it's useful because it's really handy when converting stdin input into variables of various types, and second, because it's really useful in some situations. What occasion. such as programming training sites like Leetcode and
There is an algorithm problem in Hackerrank,
That is, a number (input) can be made by a sequence [1 2 3 4 ...] The power level (the value of 3 is 2 o'clock, that is, the square, the cubic, ...) is added. How many possibilities are there, please?
Specifically:
When: input =10;p ower = 2;There are 10 =1^2 +3^2; there is a way to build it.When: input =100;power = 2;Have 100=10^2= 6^2+8^2=1^2+3^2+5^2+7^2 three kinds of construction methods.
That is, when
Recently, Hackerrank released a 2018-Year development skills report, which explores some of the things that are critical to understanding the developer environment, and extracts the programming language rankings.
Internet, IoT, AI, computer technology constantly iterative upgrade, traditional industries have begun to internet, and armed with artificial intelligence. In this trend, what programming languages do developers in various industries like to
there is openjdk, so, in order to make the default use of the JDK we installed, but also to do the following work.Perform:sudo update-alternatives--install/usr/bin/java Java ~/abc/jdk1.6.0_45/bin/java 300sudo update-alternatives--install/usr/bin/javac javac ~/abc/jdk1.6.0_45/bin/javac 300This step adds our installed JDK to the Java menu.Then execute:sudo update-alterna
The default GCC version in Ubuntu 12.04 is 4.6. But this version will be on the road when compiling Android 4.0 source code, the following is the method of installing and setting up GCC4.4.The first method:Install GCC 4.4First, install GCC 4.4 (and friends):apt-get install gcc-4.4 g++-4.4 g++-4.4-multilib gcc-4.4-multilibSet 4.4 To is the defaultThen set 4.4 to is higher priority than 4.6:update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.4
Install Hadoop in Linux (pseudo distribution mode) before writing: when installing Hadoop in Linux, pay attention to permission issues and grant hadoop permissions to non-root users. This article does not cover how to create a new user in Linux. Step 1: Install JDK1. download java. sun. com2. decompress the tar.gz file tar-xzvf jdk-7u17-linux-x64.tar.gz3. move the extracted folder to the/usr/local/jdk-1.7 directory mv/usr/local/src/jdk1.7.0 _ 17/usr/local/jdk-1.74. modify profilevi/etc/profile a
Install JDK 1.6 in Ubuntu and set it to the default JDK 1. download the Liunx JDK in Windows, my jdk-6u43-linux-i586.bin2. upload JDK to Ubuntu3. manually install JDK through secureCRT (I installed under/usr/local/bin/jdk1.6.0 _ 43): First modify the permission sudo chmod u + x jdk-6u43-linux-i586.bin to install sudo-s. /jdk-6u43-linux-i586.bin4. configure the environment variable to open the profile file sudo nano/etc/profile and add # author ylchou # date 2013-06-23export JAVA_HOME =/usr/local
Ubuntu uses different versions of gccubuntu system different versions have different gcc, such as ubuntu10.04 default gcc version is gcc-4.4.1, ubuntu10.10gcc default version is gcc-4.4.5. but in actual use, because of cross-compilation or other specific requirements, we...
Ubuntu uses gcc of different versionsDifferent versions of ubuntu have different gcc, such as ubuntu 10.04 default gcc version is gcc-4.4.1, ubuntu 10.10gcc default version is gcc-4.4.5.However, in actual use, we want to use
Ubuntu delete openjdk install SunJDK1. download the installation package to the official website: jdk-7-linux-i586.tar.gz2. create the installation directory: sudomkdir/usr/lib/jvm3. decompress: tarzxvf. /jdk-7-linux-i586.tar.gz-C/usr/lib/jvm4. set the environment variable :... ubuntu delete openjdk install Sun JDK 1. download the installation package to the official website: jdk-7-linux-i586.tar.gz2. create the installation directory: sudo mkdir/usr/lib/jvm3. decompress: tar zxvf. /jdk-7-linux-
Ubuntu14.04 install JDK and ubuntu14.04jdk
Download from Sun's official website
Http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Select accept license, and then select JDK download suitable for your model.
Decompress the file and modify the file name.
sudo mkdir /usr/lib/jvmsudo tar zxvf jdk-8u11-linux-i586.tar.gz -C /usr/lib/jvmcd /usr/lib/jvmsudo mv jdk1.8.0_11 java
Add Environment Variables
sudo vim ~/.bashrc
Add the following content
export JAVA_HOME=/usr
the online search error occurred because the Linux system is not the default point to the JDK version of the installation , so, to view the next[email protected] ~]# which Java/usr/bin/java[email protected] ~]# ls/usr/bin/java-llrwxrwxrwx. 1 root root 22 September 11:37/usr/bin/java-/etc/alternatives/java[email protected] ~]# Ll/etc/alternatives/javalrwxrwxrwx. 1 root root 35 September 11:37/etc/
JVM and rename them to the Java folder$ sudo MKDIR/USR/LIB/JVM$ sudo tar zxvf jdk-8u25-linux-i586.tar.gz-c/USR/LIB/JVM$ CD/USR/LIB/JVM$ sudo mv jdk1.8.0_25 Java2. Add an environment variable (~ represents the root directory of the current user)$ sudo vi ~/.BASHRCAdd the following environment variable configuration content in the tail line:Export Java_home=/usr/lib/jvm/javaExport JRE_HOME=${JAVA_HOME}/JREExport Classpath=.:${java_home}/lib:${jre_home}/libExport Path=${java_home}/bin: $PATH3. Con
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.