在linux 2.6.33-r2上安装JDK并设置路径

发布于 2024-12-11 09:19:25 字数 323 浏览 0 评论 0原文

我已经从“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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

灰色世界里的红玫瑰 2024-12-18 09:19:25

如何在Ubuntu(Linux)中安装“Open Jdk”(java开发工具包)?

第1步:打开应用程序>>配件>>终端

步骤 2:输入命令行如下...

      sudo apt-get install openjdk-6-jdk

步骤 3:输入命令行如下...

      apt-cache search jdk

(注意:这里象征性地使用 openjdk-6-jdk,您可以根据需要选择 jdk 版本。)

如何设置“环境变量” Ubuntu(Linux) 中的“打开 jdk”?

步骤 4:对于“JAVA_HOME”(环境变量),输入如下所示的命令,在“终端”中使用您的安装路径...

      export JAVA_HOME=/usr/lib/jvm/java-6-openjdk

(注意:“/usr/lib/jvm/java-6-openjdk”在这里只是象征性地使用为了进行演示,您应该根据您的安装使用您的路径。)

第 5 步:对于“PATH”(环境变量),请在“终端”中使用您的安装路径键入如下所示的命令...

      export PATH=/usr/lib/jvm/java-6-openjdk/bin

(注意: “/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...

      sudo apt-get install openjdk-6-jdk

Step 3: Type commandline as below...

      apt-cache search jdk

(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...

      export JAVA_HOME=/usr/lib/jvm/java-6-openjdk

(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...

      export PATH=/usr/lib/jvm/java-6-openjdk/bin

(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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文