HOW TO CREATE JAVA ENVIRONMENT IN WINDOW 7/8/8.1.
Step 1: First make to download the jdk(Java Development Kit). From the Oracle Site for the appropriate system 64bit or 32bit.
(http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
Step 2: If you do not have the IDE of java. You can download the IDE (Eclipse) as a compiler.
You can download from here for your appropriate windows need.
https://eclipse.org/downloads/packages/release/juno/sr2.
OR
If you do not want to download eclipse you can write the program in notepad but i am suggested that it is the best or time saving is to work on IDE.
Step 3: If you download the IDE you can start work on it. Or if you donot download and work on notepad. Than you must go in the
Step 1: First make to download the jdk(Java Development Kit). From the Oracle Site for the appropriate system 64bit or 32bit.
(http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
Step 2: If you do not have the IDE of java. You can download the IDE (Eclipse) as a compiler.
You can download from here for your appropriate windows need.
https://eclipse.org/downloads/packages/release/juno/sr2.
OR
If you do not want to download eclipse you can write the program in notepad but i am suggested that it is the best or time saving is to work on IDE.
Step 3: If you download the IDE you can start work on it. Or if you donot download and work on notepad. Than you must go in the
- PROGRAM FILE
- In JAVA
- Go to BIN folder
- open the PROPERTIES of First APPLET FILE.
- Copy the PATH of the APPLET FILE.
- Go to the MY COMPUTER PROPERTIES.
- Than GO In the ADVANCE SETTING SYSTEM.
- Than go in the ENVIRONMENT VARIABLES.
- Go to the NEW and NAME ALOT as PATH and PASTE the Path of applet file and save.
- Than you go in COMMAND PROMPT and Write java
- Than you got the details of the java.
write the program in NOTEPAD.
EXAMPLE::
class TEST{
public static void main(String args[]){
System.out.println("Hello World");
}
}
- Save this file as the same name of the class name.
- than save as TEST.JAVA on the desktop.
- and Than go to Command Prompt
- Write javac TEST.JAVA{For the compile and check errors in the program}.
- than you want to run you can write as java TEST.
No comments:
Post a Comment