Skip to content
Snippets Groups Projects
Commit 64e054b4 authored by Goik Martin's avatar Goik Martin
Browse files

Adding a compilation step

parent f1378c9e
No related branches found
No related tags found
No related merge requests found
...@@ -1245,9 +1245,21 @@ Hello, world</screen> ...@@ -1245,9 +1245,21 @@ Hello, world</screen>
</listitem> </listitem>
<listitem> <listitem>
<para>Compile <filename>HelloWorld.java</filename> and <para>Compile <filename>HelloWorld.java</filename>:</para>
subsequently execute <filename>HelloWorld.class</filename>
by executing:</para> <programlisting language="none">javac HelloWorld.java</programlisting>
<para>This should result in a newly generated bytecode file
<filename>HelloWorld.class</filename>:</para>
<screen>ls
<emphasis role="red">HelloWorld.class</emphasis>
HelloWorld.java</screen>
</listitem>
<listitem>
<para>Execute <filename>HelloWorld.class</filename>
by:</para>
<programlisting language="none">java HelloWorld</programlisting> <programlisting language="none">java HelloWorld</programlisting>
...@@ -1256,7 +1268,7 @@ Hello, world</screen> ...@@ -1256,7 +1268,7 @@ Hello, world</screen>
not work.</para> not work.</para>
</warning> </warning>
<para>. You should see the following output in your <para>You should see the following output in your
terminal:</para> terminal:</para>
<screen>Hello, World ...</screen> <screen>Hello, World ...</screen>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment