PhierWall
27th November 2007, 06:11
Credits to me for making it :P
#1. First download Eclipse IDE for Java Developers - Download (http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/20071103/eclipse-java-europa-fall2-win32.zip)
#2. When you have it installed, go to File > New > Java Project. For the project name put "HelloWorld". Then click finish.
#3. Create a new Java Class, then source folder should be "HelloWorld/src" and the name should be "HelloWorld". And below check the box "public static void main(String[] args)". Then click finish!
#4. Now your class file should look like this:
public class HelloWorld {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
}
}
If it doesn't back track!
Below "public static void main(String[] args) {" add the line: "System.out.println("Hello World!");" .
Then it should look like this:
public class HelloWorld {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hello World!");
}
}
#5. Next compile and run it by, Run > Run.
#1. First download Eclipse IDE for Java Developers - Download (http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/20071103/eclipse-java-europa-fall2-win32.zip)
#2. When you have it installed, go to File > New > Java Project. For the project name put "HelloWorld". Then click finish.
#3. Create a new Java Class, then source folder should be "HelloWorld/src" and the name should be "HelloWorld". And below check the box "public static void main(String[] args)". Then click finish!
#4. Now your class file should look like this:
public class HelloWorld {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
}
}
If it doesn't back track!
Below "public static void main(String[] args) {" add the line: "System.out.println("Hello World!");" .
Then it should look like this:
public class HelloWorld {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hello World!");
}
}
#5. Next compile and run it by, Run > Run.