个人工具
119.28.94.63
该IP地址的讨论
登录
查看“UbuntuHelp:Java”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Java”的源代码
来自Ubuntu中文
←
UbuntuHelp:Java
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/Java}} {{Languages|UbuntuHelp:Java}} Sun Microsystems have developed Java, which is many things depending on who you ask. It is a language, and an execution environment and probably many more things. On this page Java refers to the software that executes programs compiled to Java byte codes (akin to machine language). === Running Java under Ubuntu === In order to run Java programs and Java applets, you must have a Java environment installed. The GCJ flavor of Java is installed as default, and is usually fine for most purposes. You may, however, have a need to run the Sun flavor of Java if something does not work correctly. To get Sun Java under Ubuntu 7.04 or later running on Intel or PowerPC platform, you should enable the Universe repository in Add/Remove programs, and install either the <code><nowiki>openjdk-6-jre</nowiki></code> package or the <code><nowiki>sun-java6-bin</nowiki></code> package. (Note: PowerPC version is slow). To get Sun Java under Ubuntu 6.06 or 6.10 running on Intel x86 platform, you should enable the Universe repository in Add/Remove programs, and install the <code><nowiki>sun-java5-bin</nowiki></code> package. (Note: I do not know the corresponding command for Kubuntu, but you can always install a package with <code><nowiki>sudo apt-get install thepackage</nowiki></code> in a Terminal. Please update if you know better) See [[UbuntuHelp:JavaInstallation|JavaInstallation]] for details about installation of other flavors of Java. === Choosing the default Java to use === Just installing new Java flavours does not change the default Java pointed to by /usr/bin/java. You must explicitly set this: * Open a Terminal window * Run <code><nowiki>sudo update-java-alternatives -l</nowiki></code> to see the current configuration and possibilities. * Run <code><nowiki>sudo update-java-alternatives -s XXXX</nowiki></code> to set the XXX java version as default. For Sun Java 6 this would be <code><nowiki>sudo update-java-alternatives -s java-6-sun</nowiki></code> * Run <code><nowiki>java -version</nowiki></code> to ensure that the correct version is being called. You can also use the following command to interactively make the change; * Open a Terminal window * Run <code><nowiki>sudo update-alternatives --config java</nowiki></code> * Follow the onscreen prompt ---- [[category:CategoryDocumentation]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:Java
。