Install Java 10.04 Java 1.5 on Ubuntu 1.6
11:00:05 | category: Embedded Linux | font size subscription
Installing the JDK
The Sun JDK is no longer in Ubuntu's main package repository. In order to download it, you need to add the appropriate repository and indicate to the system which JDK shoshould be used.
Java 6: For gingerbread and newer
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"$ sudo add-apt-repository "deb-src http://archive.canonical.com/ubuntu lucid partn
the/usr/local/Android directory to prepare for later Android installation. Decompress JDK here. Add the following content to the/etc/profile file:
Export java_home =/usr/local/Android/jdk1.6.0 _ 29Export Path = $ path: $ java_home/bin
Click source/etc/profile. Enter Java-version to check whether Java is installed successfully. Generally, if 1.6.0 _ 29 is displayed, the operation is successful. But the document also says to install javac and jar. I guess the reason may be that, even though Java
Install and configure JDK 7 in Ubuntu 11.04 Step 1: Download jdk-7-linux-i586.tar.gz [plain] wget-c http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-i586.tar.gz (Note: if the download fails, it is recommended to use thunder download, and then copy to the Linux system .) Step 2: unzip and install [plain] sudo tar zxvf. /jdk-7-linux-i586.tar.gz-C/usr/lib/jvm cd/usr/lib/jvm sudo mv jdk1.7.0/java-7-sun Step 3: Modify the environment variable [plain] vim ~ /. Add bashrc: www.2cto.com [plain]
. modify the file www.2cto.com 1 PATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin: /usr/bin:/sbin:/bin:/usr/games: $ {JAVA_HOME}/bin "2JAVA_HOME =/opt/ja Va/jdk1.7.0 _ 073JRE_HOME =$ {JAVA_HOME}/jre4CLASSPATH =.: $ {JAVA_HOME}/lib: $ {JRE_HOME}/lib "3. reload bashrc1 After entering the preceding content, Press esc to exit the editing mode, move the cursor to the end, and enter ': wq! 'To save and exit. 3. Save and execute the following command to make it take effect immediately. 1 source ~ /. Ba
, you can use -- exclude to exclude specific files:
# grep -Ril --exclude=\*.conf bash /etc/*/etc/alternatives/view/etc/alternatives/vim/etc/alternatives/vi/etc/alternatives/vimdiff/etc/alternatives/rvim/etc/alternatives/ex/etc/
direct it to JDK 1.7.0 _ 51. You need to soft link that!
$ ln -s jdk1.7.0_51 currentjohn@ubuntu:Jdk$ lllrwxrwxrwx 1 john john 11 Feb 9 18:29 current -> jdk1.7.0_51/drwxr-xr-x 8 john john 4096 Mar 27 2013 jdk1.6.0_45/drwxr-xr-x 8 john john 4096 Feb 9 18:27 jdk1.7.0_51/
Configure Environment Variables
1. Modify system-level environment variables
$ sudo vim /etc/environment
2. Add the following content and modify it according to your own situation.
JAVA_HOME="/home/john/Develop
Switch gcc, g ++, and gfortran versions in ubuntuStep 1: use which gcc, which g ++, and which gfortran to view the location. My result is/usr/bin/gcc; /usr/bin/g ++ and/usr/bin/gfortran Part 2: first, let's take a look at the gcc commands installed on Ubuntu: ls/usr/bin/gcc *-l; gcc/g ++ in ubuntu 12.04 is 4.6, we downgrade the default system to 4.4 $ sudo apt-get install gcc-4.4 $ sudo update-alternatives -- install/usr/bin/gcc/usr/bin/gcc-4.4 40 (he
Due to developer issues, sun's JVM is difficult to install and configure on Fedora Linux. Here we are talking about Sun's JVM (andJDK) Is the official implementation version, not other reference implementation. Here I will teach you how to easilyFedoraLinux16 install aboveJDK7. The detailed steps are as follows:
1. Download JDK
Download the appropriate version, specifically 32-bit or 64-bit. Skip the table and directly go to the installation step.
Ii. Installation
2.1 Modify permissions
chmo
several services that can provide java. Although Java 6 is installed, the path has not been changed, System We still use the old path, so we will find that the version is incorrect during Android editing.Modify the example (replace alternatives with update-alternatives in Ubuntu ):[Root @ vostro ~] # Alternatives -- config JavaThere are 3 programs which provide
}/JRE3Export classpath =. :$ {java_home}/lib :$ {jre_home}/lib4Export path =$ {java_home}/bin: $ pathNote: Please note that you do not need to enter it urgently after running. You must press the letter I to enter the editing mode before moving the cursor input.After entering the preceding content, Press ESC to exit the editing mode, move the cursor to the end, and enter ': WQ! 'To save and exit.3. Save and execute the following command to make it take effect immediately1Source ~ /. Bashrc4. Conf
First step: Using which gcc, which g++, and which gfortran to view the location, my display results are:/usr/bin/gcc;/usr/bin/g++ and/usr/bin/gfortranPart Two: First, take a look at what version of GCC you have installed in your Ubuntu command: ls/usr/bin/gcc*-L;The gcc/g++ in Ubuntu 12.04 are all 4.6, and we downgrade the system to 4.4 by default.$sudo Apt-get Install gcc-4.4$sudo update-alternatives--INSTALL/USR/BIN/GCC gcc/usr/bin/gcc-4.4 40(Here "
Download eclipse-cpp-neon-2-linux-gtk-x86_ from Http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/neon2 64.tar.gz, unzip and install to directory/opt/, run/opt/eclipse/eclipse, error:It looks like Java 1.8 is needed.To view the Java version:$ java-versionJava Version "1.7.0_111"OpenJDK Runtime Environment (IcedTea 2.6.7) (7U111-2.6.7-2~DEB8U1)OpenJDK 64-bit Server VM (build 24.111-b01, Mixed mode)Find out where the Java command is:$ which Java/usr/bin/java$ Ll/usr/bin/javalrwxr
1, to the Sun's official website downloadIf the path cannot be found, please Baidu "Oracle technology Networkjavajava SEDownloads"Select Accept License and select the JDK download that fits your model.2, unzip the file, modify the filename$ sudo mkdir/usr/lib/jvm$ sudo tar zxvf jdk-7u21-linux-i586.tar.gz-c/usr/lib/jvm$ cd/usr/lib/jvm$ sudo mv jdk1.7.0_21 Java3. Add Environment variables$ sudo vim ~/.BASHRCAdd the following:Export Java_home=/usr/lib/jvm/java export JRE_HOME=${JAVA_HOME}/JRE expo
Tags: get error image. com failed highlight information path pictureThe general problem is this, not PHP installation failed, that is, MySQL installation failed, or Nginx installation failedis basically a fancy error. Later in the military elder brother's forum found this post: https://bbs.vpser.net/viewthread.php?tid=16700highlight=ubuntu17.10In simple terms, the GCC version is a problem.I thought about it--switch version:Let's see what the GCC and g++ are for our system.gcc-vThe information yo
Sogou input method under Ubuntu1. Add a sourcesudo add-apt-repository ppa:fcitx-team/nightly2. Update the sourcesudo apt-get update3. Installing FCITXsudo apt-get install FCITX4. Installing the FCITX Configuration toolsudo apt-get install FCITX-CONFIG-GTK5. Installing the FCITX Table-all packagesudo apt-get install Fcitx-table-all6. Install the Im-switch switch toolsudo apt-get install Im-switch7. Enter "FCITX" in the search field in the upper left corner, the input method icon appears, the ins
1, the official website download JDK, address: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html, select Jdk-8u40-linux-x64.tar.gz2. Extract the files to the specified directory and modify the file namesudo mkdir /usr/lib/jvmsudotar zxvf jdk-8u40-linux-x64. tar. gz-c/usr/lib//usr/lib/JVMwithsudomv jdk1. 7. 0_21 Java3, modify the configuration file, add environment variables1 sudo vim ~/. BASHRC2#在文档最下面添加以下配置 3 export java_home=/usr/lib/jvm/ 4 export jre_home=$
if your own JDK is located on the pathReference documentsIn fact, the above is not right, it is important to configure the default JDK to modifysudo update-alternatives--install "/usr/bin/java" "java" "/usr/jdk1.7.0_09/bin/java" 300sudo update-alternatives-- Install "/usr/bin/javac" "Javac" "/usr/jdk1.7.0_09/bin/javac" 300sudo update-alternatives--install "/usr/
(to replace OPENJDK)Open the terminal, just open it anywhere, and then execute the command in turn.sudo update-alternatives--install /home/hsiung/javadev/bin /java sudo update-alternatives--install /home/hsiung/javadev/bin /javac sudo update-alternatives--install /home/hsiung/javadev/bin /jar sudo update-alternatives
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.