Tag Archives: java6

how to install jre on ubuntu 10.10

java-logo

Java is an Object Oriented programming language whose syntax and features has highly influenced by C/C++.Java programs can also be embedded in web pages which requires Java Run Time Environment(JRE) in order to get executed.That’s why after the fresh installation of Ubuntu 10.10 Maverick Meerkat you would require JRE for surfing Internet without any lack of functionality;because a lot of websites now uses java Applets to do some client side computation.On Ubuntu open JDK(java Development Kit) is recommended.

Installing Java Run Time Environment in Ubuntu 10.10

To install JRE just go to Synaptic Package Manager and search for ‘jre’ and select the packages that says open jre/jdk.After marking the package click on Apply button to begin the installation procedure.Then wait until the installation is complete….that’s all you have installed JRE successfully on your Ubuntu 10.10 Maverick Meerkat.

how to program in java on ubuntu 10.04

Java Programming on Ubuntu 10.04

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.

Installing JRE /JDK on Ubuntu 10.04 for java programming
If you have not installed the JDK yet, then first install jdk on ubuntu 10.04 and then return to this page.
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

1. Open Gedit OR Write click on Desktop and select Create Documents->Empty File.

2. Write this simple java code to test..

// A program to print some text.
public class Welcome
{
// main method begins execution of Java application
public static void main( String[] args )
{
System.out.println("Hello World!");
System.out.println("Welcome to Java Programming! on Ubuntu 10.04");

} // method main ends here
} // end of the class Welcome

3. Save it as “Welcome.java” on your Desktop(or in any other directory).
4. Now compile this java program to create the class file by using this command on terminal(CTRL+ALT+T).

$ javac Welcome.java

5. Now you will notice a class file “Welcome.class” on your Desktop.Now JVM will execute this code through the command given below –

$ java Welcome

6. Then the java Program will be execute by jvm and you will see the following output.
Hello World!
Welcome to Java Programming! on Ubuntu 10.04

how to program in java on ubuntu 10.04

ide for java developement tool

IDE for JAVA on Ubuntu 10.04

ide for java developement tool

Best platform for JDT

For Ubuntu 10.04(Lucid Lynx),Eclipse Java Development Tools is one of the best IDE(Integrated Development Environment) available.Eclipse is crossplatform application so you can use it on GNU/Linux based operating system,windows,MacOSX.

Eclipse Java Development Tools
Eclipse is a great Open Source IDE which has support for multiple programming language by means of plugins.It is well suited as a foundation on which you can construct and run integrated software development tool.Eclipse is free and open source so you can find these softwares in ubuntu software center.

Install Eclipse :
how to install eclipse platform on ubuntu
After installing the eclipse platform you can install plugins for java development tools(JDT).
Install Eclipse jdt(java Development tools) :
To install jdt for eclipse just type “eclipse-jdt” in quick search bar of ubuntu software center.Then click on install to begin downloading and then installing process.Eclipse java Development Tools(JDT) will be installed within few minutes.That’s All..Java Development platform is ready Now!