Friday, 17 July 2015

HOW TO CREATE A PATH(BATCH) FILE FOR RUNNING JAVA PROGRAMME.

To run java programme you have to create a batch file;

How to create it:-
1. Go to java file where you installed it.
2. Then go to jdk1.8.0_45 file.
3. Then Right click on bin file and open properties and copy the file location.
4. Open notepad and paste it.
5. Then write path ahead of it and \bin at last of the paste item.
for example:-path C:\Program Files (x86)\Java\jdk1.8.0_45\bin
6. Then save it by giving .bat file ex:name.bat and save it in the folder that you create in the c drive.
7. Save all the programme in that folder where you save batch file.

No comments:

Post a Comment