Skip to main content

Learning Java - Setting up a development environment

Here is a brief summary of the software that needs to be setup so as to experiment with Java.

JRE - Java Runtime Environment. The famed "Java Virtual Machine" (JVM) on which Java bytecode runs is included in the JRE. Every computer/device that can run Java programs will have the JRE installed. The JVM can be invoked using the "java" command.

JDK - Java Development Kit. This is a bundle of software which has all the essential tools needed by a developer to create new Java programs. By Java programs I mean the bytecode that a JVM can run. The most important part of the JDK is the compiler itself; called the "javac". It is the javac that converts the source code (the .java files that is essentially text) to .class files that contain the bytecode.

With this background I invite you to patiently go through the nice little tutorial http://docs.oracle.com/javase/tutorial/getStarted/cupojava/win32.html (For Windows users)

The above tutorial doesn't introduce an IDE like Eclipe/NetBeans; but I think, as shown in the tutorial, its a very good learning experience to start by using the required tools on the command-line. Once the concepts become clear, you can move onto an IDE and make use of its productivity features.

Comments

Popular posts from this blog

Competitive Programming

Programming a Sport ? I didn't know that until today !! I was amazed to look around and find that so many initiatives abound on the internet that aim at popularizing programming. I got started at codechef.com , then watched an amazing inspirational video http://www.codechef.com/school The getting started page launched me into a web of great resources - http://www.codechef.com/getting-started Check every link ! I met two great heros of the sport in that great journey - 'tourist' and 'petr' The latter is elder to me while the former is just 19 now. petr works for Google but is still a great force in the sport. The ACM ICPC is like the olympics of programming where teams participate. Codechef's envision's the Indian team winning some day and the Go-for-Gold section is particularly geared towards that. Codechef also has a school section. Mathewkuttan, Maxwell - what do you think ?