|
49.
|
|
|
<ulink url="apt:sun-java6-jdk">Install the <application>sun-java6-jdk</application> package</ulink>.
|
|
|
|
(no translation yet)
|
|
|
|
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.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
programming/C/programming.xml:124(para)
|
|
51.
|
|
|
Hello World
|
|
|
|
(no translation yet)
|
|
|
|
Located in
programming/C/programming.xml:133(title)
|
|
52.
|
|
|
Enter the following code into a text editor and save it as "Hello.java":
|
|
|
|
(no translation yet)
|
|
|
|
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.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
programming/C/programming.xml:135(screen)
|
|
54.
|
|
|
Open a terminal and compile your code by typing:<screen>javac Hello.java</screen>. You can then run your code by typing:<screen>java Hello</screen>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
programming/C/programming.xml:141(para)
|
|
55.
|
|
|
Integrated Development Environments
|
|
|
|
(no translation yet)
|
|
|
|
Located in
programming/C/programming.xml:144(title)
|
|
56.
|
|
|
Eclipse IDE for Java
|
|
|
|
(no translation yet)
|
|
|
|
Located in
programming/C/programming.xml:146(title)
|
|
57.
|
|
|
The <application>Eclipse</application> platform provides a complete, extensible Java development environment.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
programming/C/programming.xml:147(para)
|
|
58.
|
|
|
<ulink url="apt:eclipse">Install the <application>eclipse</application> package</ulink>.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
programming/C/programming.xml:150(para)
|