Howto install Sun Java Runtime Environment (JRE) in Ubuntu 10.04 (Lucid Lynx)
2010-07-31 11:24
791 查看
Java is an object-oriented programming
language developed by Sun Microsystems in the early 1990s. Java
applications are compiled to bytecode, which at runtime is either
interpreted or compiled to native machine code for execution.
The language itself derives much of its
syntax from C and C++ but has a simpler object model and fewer low-level
facilities. JavaScript, a scripting language, shares a similar name and
has similar syntax, but is not directly related to Java.
We have already posted about sun java was moved to the Partner repository in Ubuntu 10.04 (Lucid)
Procedure to follow
Open terminal and run the following commands
Add partner repository using the following command
sudo add-apt-repository “deb http://archive.canonical.com/ lucid partner”
Update the source list
sudo apt-get update
Now install sun java packages using the following commands
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
The above command will download all the required packages and begins
the installation, you’ll get a screen that contains the Sun Operating
System Distributor License for Java and hit Enter to continue.
You’ll see a dialog that asks you if you agree with the DLJ license
terms. Select Yes, and hit Enter; the JRE will finish installing.
Testing Java Runtime Environment
You’ll want to confirm that your system is configured properly for Sun’s JRE. This is a two-step process.
First, check that the JRE is properly installed by running the following command from a terminal.
java -version
http://www.ubuntugeek.com/how-install-sun-java-runtime-environment-jre-in-ubuntu-10-04-lucid-lynx.html
language developed by Sun Microsystems in the early 1990s. Java
applications are compiled to bytecode, which at runtime is either
interpreted or compiled to native machine code for execution.
The language itself derives much of its
syntax from C and C++ but has a simpler object model and fewer low-level
facilities. JavaScript, a scripting language, shares a similar name and
has similar syntax, but is not directly related to Java.
We have already posted about sun java was moved to the Partner repository in Ubuntu 10.04 (Lucid)
Procedure to follow
Open terminal and run the following commands
Add partner repository using the following command
sudo add-apt-repository “deb http://archive.canonical.com/ lucid partner”
Update the source list
sudo apt-get update
Now install sun java packages using the following commands
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
The above command will download all the required packages and begins
the installation, you’ll get a screen that contains the Sun Operating
System Distributor License for Java and hit Enter to continue.
You’ll see a dialog that asks you if you agree with the DLJ license
terms. Select Yes, and hit Enter; the JRE will finish installing.
Testing Java Runtime Environment
You’ll want to confirm that your system is configured properly for Sun’s JRE. This is a two-step process.
First, check that the JRE is properly installed by running the following command from a terminal.
java -version
http://www.ubuntugeek.com/how-install-sun-java-runtime-environment-jre-in-ubuntu-10-04-lucid-lynx.html
相关文章推荐
- How To Install Flash Player In Ubuntu 10.04 Lucid Lynx,install firefox flash plugin addon for ubuntu
- How to install sun-java5-jdk on Ubuntu 10.04
- How to install Sun Java 1.5 on Ubuntu 10.04
- How to install Sun Java 1.5 on Ubuntu 10.04
- How to install sun-java5-jdk in Ubuntu 11.04
- How to install Sun Java 1.5 on Ubuntu 10.04
- How to install Sun Java 1.5 on Ubuntu 10.04
- How to install sun java in ubuntu
- How to install Java in Ubuntu
- Eclipse启动时报错:A Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java virtual machine was found after searching the following locations:…
- A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run STS
- a java runtime environment jre or java development kit jdk must be available in order to run eclipse
- [转载] How to install oracle java 7 in ubuntu 13.04/12.10/12.04
- Eclipse启动时报错:A Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java v
- a java runtime environment(jre) or java development kit(jdk) must be avaliable in order to run Eclip
- How To Install Oracle Java 7 (JDK) In Ubuntu
- How to install the Sun Java JDK on Ubuntu 10.10
- A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Ecl
- How to install sun-java5-jdk on Ubuntu 9.10
- A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: /usr/local/eclipse/