Friday, March 11, 2005

Getting Started

"Whenever you set out to do something, something else must be done first."
Murphy's Laws

Introduction

This chapter shows how to get started with Java, and what you need to keep coding happily. You will find most of the Java documentation you need at http://java.sun.com/docs/.

Discussion

Downloading and Installing Java

You can download java at Java SE Downloads. There's some installation instructions at the download page.
See: Downloading and Installing Java for additional instructions.

Write, Compile and Run Java Programs

Make sure that everything works as it should, by compiling and running a small Java application.
See: How to Write, Compile and Run an Application for more instructions

Java Editors

You only need a simple text editor to write Java programs. The editor must be able to save the program in an unformatted text file. For Linux, gedit, Kate or Emacs are good enough to follow this tutorial. If you need something more sophisticated, you may try an IDE (Integrated Development Environment).

Linux editors that works with unformatted text

Windows editors that works with unformatted text

Java Tutorials

Start with The Java Tutorial. You may find some more info here at Sharing Java if you get stuck. See also other Java tutorials on the Web.

"Real Programmers don't read manuals. Reliance on a reference is a hallmark of the novice and the coward."
Java v 1.4.1 API contains 2725 classes...

Java API Specification

Keep the Java API Specification available at all times! You may easily find the class you are looking for, by clicking inside the All Classes frame and then search with your browser.
See also: GNU Classpath API Specification

Java API Source Code

A lot of the Java API can be explained by looking at the source code. The source is stored in the /usr/java/j2sdk/src.zip file.

Code Conventions for the Java Programming Language

Find out how to improve the readability of your software with the Code Conventions for the Java Programming Language.

The Java Language Specification

Two Java grammars are described in The Java Language Specification (JLS3).
See also: Grammars

Java Look and Feel Design Guidelines

Learn how to create cross-platform GUI (graphical user interface) applications and applets in the Java programming language with the Java Look and Feel Design Guidelines.