Category Archives: Programming

Programming with gcc

Open Source IDE for Java

The aim of this post is to introduce you with some of the best open source IDE(Integrated Development Environment) for programming in Java.I found these IDE very useful for java programming-

java ide

BlueJ

BlueJ is a integrated java environment developed at a university.BlueJ was specifically designed for teaching java so it’s recommended for beginners.BlueJ is available free and you can download it from it’s official website(Link is specified Below).

Features of BlueJ

  • Fully Integrated Development Environment
  • graphical class structure display
  • built in editor,compiler,virtual machine(JVM),debugger..etc
  • interactive object creation/calls
  • easy to use interface,so it’s ideal for beginners
  • interactive testing

Download BlueJ
Windows users can download ‘bluejsetup-302.exe’ package,and it can be installed usually(Double Click).If you are using Ubuntu then follow the link given below.
How to install BlueJ on Ubuntu

Eclipse

Eclipse IDE is well known as Java IDE but it’s extensible due to plugins available.Eclipse is used for embedded development,enterprise development,application frameworks,internet applications,SOA(Service Oriented Architecture).For beginners,it seems more complicated and boring but it has more functionality then any other IDE.
Download Eclipse

Install Eclipse on Ubuntu 10.04

NetBeans

Netbeans is the official(made by Sun Microsystems) and free IDE for java programming ,although it has support for other languages(C/C++,PHP,Groovy,Ruby..etc) too,by means of plugins.It is very easy to use and so recommended IDE for java projects,specially if you are not an experienced java programmer.
Download Netbeans
install netbeans on Ubuntu 10.04

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

Application of java programming language

Java is an Object Oriented Programming language developed by Sun Microsystems. The first version was released in 1995. Initially it was known as Oak but latter it was renamed to java. Java is platform-independent and it has lots of free and open source libraries that makes building enterprise applications easier and faster with higher degree of stability and robustness.

Server Side

Enterprise applications need stability (including backward compatibility), security and high performance. Java/J2EE/JEE is built around┬áthose principles. JVM is very powerful and flexible (now it can also run ruby/python using jRuby/jython or so), ┬áno other language can match the level of performance (may be some new languages do but they’re not stable enough for enterprise apps) and the vast number of open source modules/libraries available.

Mobile

Android platform uses Java for app development. So, If you know Java, you can easily pick up Android API (little different from native Java API) very easily.

Desktop

Although, it’s not that popular (like Android or JEE) but you could build cross-platform desktop apps using Java.