
Now compile this java program to create the class file by using this command on terminal(CTRL+ALT+T). Save it as “ Welcome.java” on your Desktop(or in any other directory).Ĥ. ("Welcome to Java Programming! on Ubuntu 10.04") ģ.

main method begins execution of Java application Open Gedit OR Write click on Desktop and select Create Documents->Empty File. When you have installed JDK successfully on ubuntu ,then you will be able to write and execute jav programs.Follow these simple steps to write and execute your first java program on ubuntu 10.04 – How to compile and run java program on Ubuntu 10.04ġ.

If you have not installed the JDK yet, then first install jdk on ubuntu 10.04 and then return to this page. Installing JRE /JDK on Ubuntu 10.04 for java programming Java is multi platform programming language.It uses JDK(includes jre) to create a class file from the source code and then the generated class file can be run on any computer by using Java Virtual Machine(JVM).So to write and execute java programs Java Development Kit(JDK) must be installed on the computer.
