Software You need
.Java 2 runtime Environment
.jdk 6
.j2re
Starting with IDE.....>>
.you need Ide
eg:jcreator,netbeans
Or Starting With cmd..........>>>>>
.
.
.
.note:
here C:\program files\java\jdk1.6.0_25>>>
iam install jdk on c:\program files that is
NOTE:install jdk at same directory where You Install
Java 2 runtime Environment and
J2re
.
.
.
note:
start-->settings-->control panel-->click "system"-->advanced(tab)
--->Environment variables-->click new
.
variable:java
variable value:C:\program files\java\jdk1.6.0_25\bin
.
variable value is the path of jdk install
.
.
Click on Start-->run-->type CMD
then an black screen window open
type following
first open directory in cmd where your file locating...
cmd is look like this..
C:\Document and settings\computer>
.
.
.
open directory in cmd...
.
.
type cd..
.
.
.
then command windwow like this:C:\Document and settings>
.
.
.
type cd..
.
.
.
.
then command window like this:c:\>
.
.
.
.
type cd\my java
.
.
.
then command window like this:C:\my java>
.
.
.
.
.
.
.
.
.
then type following commands
set path=%path%;C:\program files\java\jdk1.6.0_25\bin
.
.
.
.
.
.
.note:dont close this command window
.
.
.
.open notepad or any text editor
.start->;accesories-->;notepad
.
.type following commands
public class hello{
public static void main(String[]args){
System.out.println("hello world");
}
}
then save "hello.java"
save as type:click all files
encoding:ANSI
.
note:Main class name is file name
.
.
. compiling>>>>>
type
javac hello.java
.
.
.
javac
.
.
.
note:if any error it will show
run>>>>
java hello
.
.
.
.
java
.
.
output will be
.
hello world
.
*
note:iam save my all java files in c:\my java
.C:\-->localdisk
.my java -->>folder iam created for saving java
file...
*
.
.
.
.
Lets look this example: hello.java this file we are saving at
folder name: my java
.
.
.
.
MORE JAVA EXAMPLES
DOWNLOAD FREELY (login this link it is free)
.
.
go to download freely and create free account then visit friend irfusabir