Java for beginner :- Learn java from my blog and enjoy the programming world.
Some things are necessary for java's program thus you have to use that things while run java programs.
Initially we don't use IDE at core java.
1. Jdk 1.6 :- Install Jdk 1.6 on c drive root.
2.Open dos prompt:- To open dos prompt, follow the instructions.
For xp users:-
Start:- Run :- command
For windows 7 users:-
Start:- In search box, Type:- command
You will get a big path like
C:\pf\mvs\-----------\> cd\
C:\> cd jdk1.6
C:\jdk1.6>cd bin
C:\jdk1.6\bin>
Then a simple program:-
class psp
{
public static void main(String mm[])
{
System.out.print("Hello");
System.out.println("god is");
System.out.println("great");
}
}
now file:- save
this program is named .. lmn.java
To compile the code:-
C:\jdk1.6\bin>javac lmn.java
C:\jdk1.6\bin>java psp
Output will be:-
Hellogod is
great
Some things are necessary for java's program thus you have to use that things while run java programs.
Initially we don't use IDE at core java.
1. Jdk 1.6 :- Install Jdk 1.6 on c drive root.
2.Open dos prompt:- To open dos prompt, follow the instructions.
For xp users:-
Start:- Run :- command
For windows 7 users:-
Start:- In search box, Type:- command
You will get a big path like
C:\pf\mvs\-----------\> cd\
C:\> cd jdk1.6
C:\jdk1.6>cd bin
C:\jdk1.6\bin>
Then a simple program:-
class psp
{
public static void main(String mm[])
{
System.out.print("Hello");
System.out.println("god is");
System.out.println("great");
}
}
now file:- save
this program is named .. lmn.java
To compile the code:-
C:\jdk1.6\bin>javac lmn.java
C:\jdk1.6\bin>java psp
Output will be:-
Hellogod is
great
No comments:
Post a Comment