Tero Karvinen - Articles - Downloads - Courses - Contact

tee@uusi:~$ apt-cache search sun java jdk --names-only # multiverse
tee@uusi:~$ sudo apt-get install sun-java6-jdk 
tee@uusi:~$ cat HelloWorld.java 
public class HelloWorld
{
     public static void main(String[] args) 
     {
          System.out.println("Hello, world!");
     }
}
tee@uusi:~$ javac HelloWorld.java 
tee@uusi:~$ java HelloWorld 

See also: http://en.wikibooks.org/wiki/List_of_hello_world_programs#Java

Last modified: 2007-10-08. Permanent url: http://www.iki.fi/karvinen/notes_about_sun_java_jdk_on_feisty_on_linux_basics_2007_w40.html

Tero Karvinen www.iki.fi/karvinen - Top - Validate HTML - Validate CSS