Sunday, 22 January 2017

EXECUTION PROCEDURE FOR JAVA APPLICATION

If i want to execute java application the first i need to install java software i.e. JDK 1.8 or any other version.

Note : when we install JDK in our local system then we get 2 folders from java with name JDK , JRE.


Working with JDK
Here JDK is providing javac (java compiler), JVM (java virtual machine) but we can't work with javac, jvm even though if we installed software in our local system.

Why ?
Because javac, jvm is not depends on operating system.

Then how to work with javac and jvm ?
By setting its path.

What is path and how to set the path ?
Path means system environment variable.

What is system environment variable ?
It is one of the memory area in local system.

How to set the path ?
Following are the steps -
Step 1 - Collect path from java---jdk---bin
Step 2 - Collected path set to system environment variable by following instructions -
Instruction - MyComputer---properties---Advanced System---Advance---Environment variable---then we can get final dialogue box with 2 option.
1. User variable
   - variable name : path
   - variable value : paste the collected URL
2. System variable
   - variable name : CLASS PATH
   - variable value : paste the collected URL


Execution steps


Note : To write java programs in market we have IDE's (Integrated Development Environment) or notepad, notepad++, editplus etc. Realtime IDE's - Netbeans, Eclipse, MyEclipse

No comments:

Post a Comment