How To Install Sun JVM (JDK 1.5.x) on Linux / Fedora Core in 5 Simple Steps如何安装新的JVM (的JDK 1.5.x )在Linux /浅顶软呢帽核心在5简单步骤
Install Sun’s Java Virtual Machine ( J2SE(TM) Development Kit 5.0 Update 9 ) on Fedora Core / Linux platform in 5 simple steps.安装Sun的Java虚拟机( J2SE的(技术备忘录)开发工具包5.0更新九日)就浅顶软呢帽核心/ Linux平台在5简单的步骤。 The procedure is geared for users having access to Linux box from ssh / telnet only as in a vpn / dedicated web hosting.程序是面向用户有机会到Linux的方块从SSH的/ Telnet工作只是作为在一个VPN /专用Web托管。 However it can be used by anyone.但它可用于任何人。
Step 1:第1步:
Login as root (su) and cd to a temporary directory for downloads.以root登入(苏)和CD到一个临时目录下载。 Suppose your user name is john then you can do:假设你的用户名是约翰,然后你可以做的:
su 苏
cd ~john 裁谈会〜约翰
Step 2:第2步:
Download J2SE(TM) Development Kit 5.0 Update 9 as Linux RPM in self-extracting file using wget.下载的J2SE (技术备忘录)开发工具包5.0更新9随着Linux在RPM的自解压缩文件,使用wget 。 To do that first browse to this这样做,首先浏览到这 link链接 using your browser.使用您的浏览器。 After accepting the license copy the link corresponding to Linux RPM in self-extracting file .之后,接受授权链接复制到Linux相应的转速在自解压文件 。
Use wget to copy the link.使用wget复制链接。 Specify the output file as wget will be unable to save the default name it generates because it is too long:指定输出文件作为wget将无法保存的默认名称它所产生的,因为它是太长:
wget http://192.18.108.145/ECom/EComTicketServlet/…i586-rpm.bin -O jdk-1_5_0_09-linux-i586-rpm.bin wget http://192.18.108.145/ecom/ecomticketservlet/ … i586 - rpm.bin邻的JDK - 1_5_0_09 - Linux的i586 - rpm.bin
Note: -O specifies the output file as shown above.注: - O的指定输出文件如上所示。
Step 3:第3步:
Install JVM as follows:安装的JVM如下:
sh jdk-1_5_0_09-linux-i586-rpm.bin 的SH的JDK - 1_5_0_09 - Linux的i586 - rpm.bin
Step 4:第4步:
Now download现在下载 java-1.5.0-sun-compat-1.5.0.09-1jpp.noarch.rpm爪哇- 1.5.0 -孙- compat - 1.5.0.09 - 1jpp.noarch.rpm using wget.使用wget 。
Install it as follows:它安装如下:
rpm -i java-1.5.0-sun-compat-1.5.0.09-1jpp.noarch.rpm RPM的我的Java - 1.5.0 -孙- compat - 1.5.0.09 - 1jpp.noarch.rpm
This sets up environment variables, paths, symbolic links etc.这个设置环境变量,路径,符号链接等。
Step 5:第5步:
Create a new console and type java .创建一个新的控制台和类型的Java 。 You should see something like:您应该会看到一些像这样:
Usage: java [-options] class [args...] 用法: Java的[选项]级[ args ... ]
… …
You are done!你这样做!
Filed under提起下 Headline News头条新闻 , , How To如何 , , Java Software Java软件 , , Linux Linux的 , , Open Source Software开放源码软件 , , Tech Note技术说明 , , Web网页 , , Web Hosting虚拟主机 , , Web Services Web服务 | |
| |
RSS 2.0 2.0 | |
Trackback Trackback跟踪 this Article |此文章|
Email this Article电子邮件此文章
You may also like to read您也可以想读 |




February 16th, 2007 at 1:28 pm 2007年2月16日在下午1时28分
I installed JVM 1.6 on Linux.In Windows when I double click jar files it directly starts Java application.However, in Linux it starts archive application and shows the class files of the jar archive.How I can adjust it to run directly JVM?我安装了JVM的1.6就linux.in的Windows ,当我双击jar文件直接启动的Java application.however ,在Linux启动封存的应用,并显示了工人阶级的档案罐子archive.how我可以将它调整到直接执行的JVM呢?
March 16th, 2007 at 8:10 pm 2007年3月16日在下午8时10分
Great info, been fighting this for a couple hours and this fixed it straigh away.伟大的信息,一直争取的,这为一对夫妇时,这固定它straigh消失。 thanks谢谢
June 11th, 2007 at 6:56 pm 2007年6月11日在下午6时56分
this was a great help!这是一个很大的帮助! Thx! thx !