|
44.
|
|
|
<ulink url="apt:sun-java5-jdk">Install the <application>sun-java5-jdk</application> package</ulink>.
|
|
|
|
<ulink url="apt:sun-java5-jdk">安装<application>sun-java5-jdk</application>包</ulink>.
|
|
Translated and reviewed by
maxim(Feng Liu)
|
|
|
|
Located in
programming/C/programming.xml:100(para)
|
|
45.
|
|
|
Read the Java license presented. You must accept it to continue.
|
|
|
|
请阅读这份Java的许可书,你需要接受它以便继续。
|
|
Translated and reviewed by
maxim(Feng Liu)
|
|
|
|
Located in
programming/C/programming.xml:103(para) programming/C/programming.xml:121(para)
|
|
46.
|
|
|
To get your system to use Sun Java instead of the open-source (but less functional) GIJ that is installed by default, run: <screen>sudo update-alternatives --config java</screen> and choose the option that has <filename>j2re1.5-sun</filename> in it.
|
|
|
|
要让你的系统使用Sun Java来替代默认安装的开源(但是功能相对较少) GIJ,运行:<screen>sudo update-alternatives --config java</screen>并选择一个含有<filename>j2re1.5-sun</filename>的选项。
|
|
Translated and reviewed by
maxim(Feng Liu)
|
|
|
|
Located in
programming/C/programming.xml:106(para)
|
|
47.
|
|
|
JDK 1.6
|
|
|
|
JDK 1.6
|
|
Translated and reviewed by
maxim(Feng Liu)
|
|
|
|
Located in
programming/C/programming.xml:114(title)
|
|
48.
|
|
|
Java 1.6 is also available, and can be installed by following the above directions, swapping all instances of 1.5 to 1.6
|
|
|
|
Java 1.6 同样可以使用,您可以根据以上的的说明来安装它,将所有1.5的实例改成1.6版本的。
|
|
Translated and reviewed by
maxim(Feng Liu)
|
|
|
|
Located in
programming/C/programming.xml:115(para)
|
|
49.
|
|
|
<ulink url="apt:sun-java6-jdk">Install the <application>sun-java6-jdk</application> package</ulink>.
|
|
|
|
<ulink url="apt:sun-java6-jdk">安装<application>sun-java6-jdk</application> 包</ulink>.
|
|
Translated and reviewed by
maxim(Feng Liu)
|
|
|
|
Located in
programming/C/programming.xml:118(para)
|
|
50.
|
|
|
To get your system to use Sun Java instead of the open-source (but less functional) GIJ that is installed by default, run: <screen>sudo update-alternatives --config java</screen> and choose the option that has <filename>j2re1.6-sun</filename> in it.
|
|
|
|
要让你的系统使用Sun Java来替代默认安装的开源(但是功能相对较少) GIJ,运行:<screen>sudo update-alternatives --config java</screen>并选择一个含有<filename>j2re1.6-sun</filename>的选项。
|
|
Translated and reviewed by
maxim(Feng Liu)
|
|
|
|
Located in
programming/C/programming.xml:124(para)
|
|
51.
|
|
|
Hello World
|
|
|
|
Hello World
|
|
Translated and reviewed by
maxim(Feng Liu)
|
|
|
|
Located in
programming/C/programming.xml:133(title)
|
|
52.
|
|
|
Enter the following code into a text editor and save it as "Hello.java":
|
|
|
|
在一个文本编辑器中输入以下代码并把它保存成名为"Hello.java"的文件
|
|
Translated and reviewed by
maxim(Feng Liu)
|
|
|
|
Located in
programming/C/programming.xml:134(para)
|
|
53.
|
|
|
public class Hello {
public static void main(String[] args) {
System.out.println("Hello world");
}
}
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
public class Hello {
public static void main(String[] args) {
System.out.println("Hello world");
}
}
|
|
Translated and reviewed by
maxim(Feng Liu)
|
|
|
|
Located in
programming/C/programming.xml:135(screen)
|