basic need to run java program

BASIC REQUIREMENT TO WORK IN JAVA IDE PART . 4

Basic Need To Run Java Program

jdk ( Java development kit )

jdk is the combination of java compiler(javac.exe),jre(jvm, library)

1 – Download the jdk from oracle web site.

2 – Install the jdk.

3 – How we can check jdk is installed?

      Go to C:\Program Files\java\jdk1.8.0_241\bin     

[jaac.exe file should be present]

Javac

This is  java compiler and responsible to compile java program.

Java

Java file is responsible to run java program because it internally calls the Java virtual machine

First way of writing First java program

1 – If you want to keep your java program any where in your System than you have to register the java compiler path to the operating System.

2 – How to set the Environment variable.

A – Copy the path where java compiler is present.

      “C:\Program Files\java\jdk1.8.0_241\bin”

B – Go to my computer -> Right click -> properties -> Advance system settings -> Environment variable -> New-give the variable name=path

Go to my computer -> Right click -> properties -> Advance system settings -> Environment variable -> New-give the variable name=path

     Give the variable value  =  “C:\Program Files\java\jdk1.8.0_241\bin”

3 – Make a folder in your system any where name as my all java program.

4 – Open notepad normally.

5 – Open your Notepad run as Administrator {Right click on Notepad}

6 – Write Java Program in Notepad.

7 – Write the java program.

8 – Save the java program where your folder is present by using .java extension.

Note – File Name same as class Name [Recommended]

             Open the cmd where your all program is present.

9 – Now compile program

       cmd……..> javac  filename…………enter….

Ex. -> java Demo.java

10 – Now Run program

       …….javac  className…………enter….

Ex. -> java Demo ………….enter .

Basic Require To Work In Java IDE

Application in compiler & software

Netbeans [ IDE (Integrated Development Environment) ]

Eclipse     [ IDE (Integrated Development Environment) ]

BlueJ [ IDE (Integrated Development Environment) ]

Please follow as facebook : www.facebook.com

Please follow as twitter : www.twitter.com

And more information please visit here : www.weindians.in

One thought on “BASIC REQUIREMENT TO WORK IN JAVA IDE PART . 4

Leave a Reply

Your email address will not be published. Required fields are marked *