Studyon Minte9.com
Java SE




JDK installation



Java SE SDK 6

NetBeans (IDE)
Hello world (example)
http://docs.oracle.com/javase/tutorial/getStarted/cupojava/netbeans.html - new project (File / New Project) - compile (Run / Build Main Project) - run (Run / Run Main Project)
Installation
- java.sun.com - products (java SE) - downloads (JDK) - install
Enviroment Variables
- My Computer (properties) - Advanced, Enviroment Variables, System Variables (Path, Edit) - Add ";C:/Program Files/Java/jdk1.6.0_19/bin;"
Test
- Start -> Run -> cmd - java -version
Example
// Create a text file in C:/htdocs/java/MyFirstApp.java public class MyFirstApp { public static void main (String[] args) { System.out.println("Hello World!"); } }
  Compilare
- C:/Program Files/Java/jdk1.6.0_29/bin>javac c:/htdocs/java/MyFirstApp.java - Compiler will create the MyFirstApp.class file
Rulare
C:/Program Files/Java/jdk1.6.0_29/bin>cd c:/htdocs/java C:/htdocs/java>java MyFirstApp.class Ouputs: Hello World!
Tutorial


http://www.oracle.com/technetwork/java/javase/downloads/index.html
http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u29-download-513648.html
http://netbeans.org/downloads/index.html
http://java.sun.com/docs/books/tutorial/getStarted/problem