David
Favorite Answer
Well, for a start, you will need 3 things:
1) Java virtual machine (which you most likley already have)
2) Java software development kit (Java SDK), here is the latest version: https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jdk-6u14-oth-JPR@CDS-CDS_Developer
3) An IDE, I recommand Eclipse, simply download (its in a zip file) and run the eclipse.exe, no need to install anything
Once you install everything, run eclipse and lets make a hello world program:
1) File -> New -> Application Client Project
2) Project Name: Hello World
3) Finish
4) In the project explorer find Hello world and go to the
"appclientModule" folder, which is where your source files will be located
5) Go to the default package and open Main.Java
6) Put the following code in there:
public class Main {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
7) Hit the play button (or Ctrl+F11)
If everything whant as it should the console window should have printed:
Hello World!
Congratulations! You are all set to explorer the wonderful world of Java!
Further reading
Sun's Java Tutorial - http://java.sun.com/docs/books/tutorial/
Java Tutorial (Tons of examples) - http://www.java2s.com/Tutorial/Java/CatalogJava.htm
Anonymous
Java is a great language to learn. You will need an IDE (Integrated Development Environment). I suggest the latest version of netbeans. Also you will probably need this website. http://java.sun.com/docs/books/tutorial/ It is put out by the creators of the Java programming language and has some great information in it.
Luke Lucario
For the IDE get Netbeans. It's on the Java website. How to learn? Go download a ebook on Java for dummies or something like that or buy a book from a book store.