没有sudo安装jdk? [英] Installing jdk without sudo?

查看:127
本文介绍了没有sudo安装jdk?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我有一台我在Eclipse上工作的机器,它说JRE系统库版本是sun-jdk-1.5.0.11,但在我的活动开发机器上,它是java-6-sun-1.6。 0.16。有没有什么方法可以让第一台机器使用相同的java-6-sun-1.6.0.16版本而没有机器上的sudo权限?

Currently, I have a machine on which I am working in Eclipse, it says that the JRE System Library version is sun-jdk-1.5.0.11 but on my active development machine, it is java-6-sun-1.6.0.16. Is there any way I can make the first machine to use the same "java-6-sun-1.6.0.16" version without having sudo permissions on the machine?

推荐答案

您可以将JDK安装在非标准目录中,例如在您自己的主目录下,无需特殊权限。

You can install the JDK in a non-standard directory, for example under your own home directory, without special permissions.

您只需需要指向PATH和JAVA_HOME以及Eclipse。

You just need to point PATH and JAVA_HOME and Eclipse at it.

这篇关于没有sudo安装jdk?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆