xml地图|网站地图|网站标签 [设为首页] [加入收藏]

软件专题

当前位置:美高梅游戏网站 > 软件专题 > ubuntu下安装sun jdk7,firefox22安装jre

ubuntu下安装sun jdk7,firefox22安装jre

来源:http://www.gd-chuangmei.com 作者:美高梅游戏网站 时间:2019-09-11 04:41

ubuntu下安装sun jdk7,firefox22安装jre

ubuntu10.04安装sun jdk6

 

 

安装包是jdk-7u25-linux-i586.gz,解压:

  1. 下载JDK

tar -xvzf jdk-7u25-linux-i586.gz

 

 

地址:

拷贝到/usr/lib/jvm下:

  1. 安装

sudo cp -rf jdk1.7.0_25 /usr/lib/jvm

  www.2cto.com  

 

官网的安装手册如下

更改环境变量:

 

gedit ~/.bashrc

[plain] 

打开后加入:

Installation Instructions  

export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_25 

  

export JRE_HOME=${JAVA_HOME}/jre  

This procedure installs the Java Development Kit (JDK) for 32-bit Linux, using a self-extracting binary file. The JDK download includes the Java SE Runtime Environment (JRE) – you do not have to download the JRE separately.  

export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib  

  

export PATH=${JAVA_HOME}/bin:$PATH 

For RPM-based Linux distributions, like Red Hat or SuSE, refer to the RPM installation instructions.  

保存关闭。

  

 

The name of the downloaded file has the following format:  

用source使其生效:

  

source ~/.bashrc

    jdk-6u<version>-linux-i586.bin  

 

            

然后java -version会看到java版本是7.

  

 

<version>  

firefox12的安装包是Firefox-latest.tar.bz2,将其解压后是一个firefox目录,先删除老firefox:

  

sudo rm -r /opt/firefox

    jdk-6u18-linux-i586.bin  

 

  

将解压的版本移动到该目录下:

To install, download this file and use the following instructions.  

sudo mv firefox /opt/

  

 

<span style="font-weight: bold;">1. Download and check the download file size.</span>  

备份老的firefox在系统中的链接:

  

sudo mv /usr/bin/firefox /usr/bin/firefox-old

    You can download to any directory that you can write to.  

 

  

给firefox12创建链接

    This bundle can be installed by anyone (not only root users), in any location that the user can write to. However, only the root user can displace the system version of the Java platform supplied by Linux.  

sudo ln -s /opt/firefox/firefox /usr/bin/firefox

  

 

<span style="font-weight: bold;">2. Make sure that execute permissions are set</span>  

然后给firefox12填加java plugin使其支持java 7

    www.2cto.com  

在firefox的URL框中打about:plugins,查看目前plugin的位置,我这里是/usr/lib/mozilla/plugins,关闭firefox。

    Run this command:  

进入该目录:

    % <span style="font-weight: bold; color: rgb(153, 153, 153);">chmod a+x jdk-6u <version>-linux-i586.bin </span>  

cd /usr/lib/mozilla/plugins

  

填加链接:

<span style="font-weight: bold;">3. Change directory to the location where you would like the files to be installed.</span>  

sudo ln -s /usr/lib/jvm/jdk1.7.0_25/jre/lib/i386/libnpjp2.so

  

打开firefox就可看到java plugin已经安装。

    The next step installs the JDK into the current directory.  

 

  

jdk7,firefox22安装jre 安装包是jdk-7u25-linux-i586.gz,解压: tar -xvzf jdk-7u25-linux-i586.gz 拷贝到/usr/lib/jvm下: sudo cp -rf jdk1.7.0_25 /usr/...

<span style="font-weight: bold;">4. Run the self-extracting binary.</span>  

  

    Execute the downloaded file, prepended by the path to it. For example, if the file is in the current directory, prepend it with " ./" (necessary if " ." is not in the PATH environment variable):  

  

    % <strong><span style="color:#999999;">./jdk-6u <version>-linux-i586.bin</span></strong><span style="color: rgb(102, 102, 102);">  

</span>  

    The binary code license is displayed, and you are prompted to agree to its terms.  

本文由美高梅游戏网站发布于软件专题,转载请注明出处:ubuntu下安装sun jdk7,firefox22安装jre

关键词: