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

Install Oracle tutorial under Ubuntu12.10

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly explains the "installation of Oracle under Ubuntu12.10 tutorial", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and study the "installation of Oracle under Ubuntu12.10 tutorial" bar!

First, there are three common commands, whether you are a 32-bit system or a 64-bit system:

Sudo apt-get purge openjdk-\ *

Sudo mkdir-p / usr/local/java

Cd / home/ "your_user_name" / Downloads

If you are a 32-bit system, type the following command later:

Sudo-s cp-r jdk-7u9-linux-i586.tar.gz / usr/local/java

Sudo-s cp-r jre-7u9-linux-i586.tar.gz / usr/local/java

Cd / usr/local/java

Sudo-s chmod axix jdk-7u9-linux-i586.tar.gz

Sudo-s chmod axix jre-7u9-linux-i586.tar.gz

Sudo-s tar xvzf jdk-7u9-linux-i586.tar.gz

Sudo-s tar xvzf jre-7u9-linux-i586.tar.gz

If you are a 64-bit system, type the following command later:

Sudo-s cp-r jdk-7u9-linux-x64.tar.gz / usr/local/java

Sudo-s cp-r jre-7u9-linux-x64.tar.gz / usr/local/java

Cd / usr/local/java

Sudo-s chmod axix jdk-7u9-linux-x64.tar.gz

Sudo-s chmod axix jre-7u9-linux-x64.tar.gz

Sudo-s tar xvzf jdk-7u9-linux-x64.tar.gz

Sudo-s tar xvzf jre-7u9-linux-x64.tar.gz

All right, next, whether it's a 32-bit Ubuntu or a 64-bit Ubuntu, execute the following command to edit the profile file:

Sudo gedit / etc/profile

Paste the following code into the editor:

JAVA_HOME=/usr/local/java/jdk1.7.0_09

PATH=$PATH:$HOME/bin:$JAVA_HOME/bin

JRE_HOME=/usr/local/java/jre1.7.0_09

PATH=$PATH:$HOME/bin:$JRE_HOME/bin

Export JAVA_HOME

Export JRE_HOME

Export PATH

Save and close gedit, and then continue entering the following command:

Sudo update-alternatives-install "/ usr/bin/java"java" / usr/local/java/jre1.7.0_09/bin/java "1

Sudo update-alternatives-install "/ usr/bin/javac"javac" / usr/local/java/jdk1.7.0_09/bin/javac "1

Sudo update-alternatives-install "/ usr/bin/javaws"javaws" / usr/local/java/jre1.7.0_09/bin/javaws "1

Sudo update-alternatives-set java/ usr/local/java/jre1.7.0_09/bin/java

Sudo update-alternatives-set javac / usr/local/java/jdk1.7.0_09/bin/javac

Sudo update-alternatives-set javaws / usr/local/java/jre1.7.0_09/bin/javaws

. / etc/profile

OK, now that Oracle Java has been installed, let's start various tests right away.

Thank you for reading, the above is the content of "install Oracle tutorial under Ubuntu12.10", after the study of this article, I believe you have a deeper understanding of the problem of installing Oracle tutorial under Ubuntu12.10, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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

Servers

Wechat

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

12
Report