How to install java
Step 01 - Install the java program
Step 02 - Create class path
class test
{
public static void main (String param[])
{
System.out.println("Hello Java");
}}
using note pad type this java code
Step 04 - after creating java source code file you must save it using .java extension
Step 05 - in this step we should use dos program
now you are in the java folder
you must compile source code file in to java byte code javac test.java
Step 06 - interpret java file java test
Step 02 - Create class path
- go to c drive
- select program files
- select java
- go to the bin folder
- copy class path using address bar
- right click on computer
- go to properties
- select advance system setting
- select environment variable
- select new
- type variable name as "PATH" and set variable values as class path(paste class path)
- click ok
Step 03 - test java installed properly
class test
{
public static void main (String param[])
{
System.out.println("Hello Java");
}}
using note pad type this java code
Step 04 - after creating java source code file you must save it using .java extension
- file
- save as
- select c drive or d drive or folder
- type the file name as test.java
- save
Step 05 - in this step we should use dos program
you should go in to folder java cd java
you must compile source code file in to java byte code javac test.java
Step 06 - interpret java file java test
How to install java
Reviewed by Unknown
on
10:57 PM
Rating: