在linux 2.6.33-r2上安装JDK并设置路径
我已经从“http://www.oracle.com/technetwork/java/javase/downloads/index.html”下载了jdk7 并尝试按照网站(上面提到的)中给定的说明将其安装在linux平台上(我的操作系统是linux 2.6.33-gentoo-r2)。 在给定的说明中,他们提到 " 解压缩 tarball 并安装 JDK。 % tar zxvf jdk-7u-linux-x64.tar.gz " 至此执行成功。在这一步之后我需要做./configure。 但我无法做到这一点。它说命令未找到。我尝试过很多来源,但无法得到它。有人可以帮我吗?
提前致谢, 阿伦
I have downloaded jdk7 from "http://www.oracle.com/technetwork/java/javase/downloads/index.html"
and was trying to install it on linux platform (my OS is linux 2.6.33-gentoo-r2) by the given instructions in the website(mentioned above).
In the given instructions, they mentioned that
" Unpack the tarball and install the JDK.
% tar zxvf jdk-7u-linux-x64.tar.gz "
This was executed successfully. After that step i need to do ./configure.
But I'm not able to do that. It says command not found. I have tried with many sources, but couldn't get it. Could some one please help me?
Thanks in advance,
Arun
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如何在Ubuntu(Linux)中安装“Open Jdk”(java开发工具包)?
第1步:打开应用程序>>配件>>终端
步骤 2:输入命令行如下...
步骤 3:输入命令行如下...
(注意:这里象征性地使用 openjdk-6-jdk,您可以根据需要选择 jdk 版本。)
如何设置“环境变量” Ubuntu(Linux) 中的“打开 jdk”?
步骤 4:对于“JAVA_HOME”(环境变量),输入如下所示的命令,在“终端”中使用您的安装路径...
(注意:“/usr/lib/jvm/java-6-openjdk”在这里只是象征性地使用为了进行演示,您应该根据您的安装使用您的路径。)
第 5 步:对于“PATH”(环境变量),请在“终端”中使用您的安装路径键入如下所示的命令...
(注意: “/usr/lib/jvm/java-6-openjdk”在这里象征性地使用,只是为了演示,您应该根据您的安装使用您的路径。)
第6步:检查“open jdk”安装,只需在“终端”中键入命令如下图
javac
ths是在ubuntu上安装jdk的步骤......尝试像这样的linux
How to install "Open Jdk" (java developement kit) in Ubuntu(Linux)?
Step 1: Open Applicaction>> Accessories>> Terminal
Step 2: Type commandline as below...
Step 3: Type commandline as below...
(Note: openjdk-6-jdk is symbolically used here you can choose jdk version as per your requirment.)
How to set "Environment Variables" for "Open jdk" in Ubuntu(Linux)?
Step 4: For "JAVA_HOME" (Environment Variable) type command as shown below, in "Terminal" using your installation path...
(Note: "/usr/lib/jvm/java-6-openjdk" is symbolically used here just for demostration you should use your path as per your installation.)
Step 5: For "PATH" (Environment Variable) type command as shown below, in "Terminal" using your installation path...
(Note: "/usr/lib/jvm/java-6-openjdk" is symbolically used here just for demostration you should use your path as per your installation.)
Step 6: Check for "open jdk" installation, just type command in "Terminal" as shown below
javac
ths are steps for installation of jdk on ubuntu..... try for linux like this