#java #javatutorials #deepak #smartprogramming

Java Development Course (Upto 80% off) : https://courses.smartprogramming.in
For more details Call or What's App : +91 98887-55565

-----------------------------------------------------------------

https://youtube.com/playlist?list=PLlhM4lkb2sEhfuXL-2BDrJ67WkUdQ2v9b : Core Java Playlist
https://youtube.com/playlist?list=PLlhM4lkb2sEjVsbbZ_kiixY5CcR84IQUg : Advance Java Playlist
https://youtube.com/playlist?list=PLlhM4lkb2sEhdllbTIVF0rzD0coCiuHok : Android Playlist

=====================================

▶ Core Java Chapter-wise Playlist ◀

⭕ 9. https://youtube.com/playlist?list=PLlhM4lkb2sEiOcuH1g-CUuU288qmMNpyj
⭕ 8. https://youtube.com/playlist?list=PLlhM4lkb2sEh1pBs0KBb63PlKKqRx6M1a
⭕ 7. https://youtube.com/playlist?list=PLlhM4lkb2sEh8AARH5oEivYOrMgaVsPFb
⭕ 6. https://youtube.com/playlist?list=PLlhM4lkb2sEjaU-JAASDG4Tdwpf-JFARN
⭕ 5. https://youtube.com/playlist?list=PLlhM4lkb2sEhf5NlWeYh_gdcN49pHjVP0
⭕ 4. https://youtube.com/playlist?list=PLlhM4lkb2sEi4UoqSmobDeA5VNI1f2w3C
⭕ 3. https://youtube.com/playlist?list=PLlhM4lkb2sEgQmNKO43i7v60no4bdc3lI
⭕ 2. https://youtube.com/playlist?list=PLlhM4lkb2sEj6zsK25K9f15qNUATqYxGq
⭕ 1. https://youtube.com/playlist?list=PLlhM4lkb2sEhwPZhFmlox57kaCgMm5UgC

=====================================

▶Advance Java Chapter-wise Playlist ◀

⭕ 1. https://youtube.com/playlist?list=PLlhM4lkb2sEjDXBqaYbwAoDAQKh2yczR7
⭕ 2. https://youtube.com/playlist?list=PLlhM4lkb2sEiiEAP0uSFXiFY8KdXPnN0f

=====================================

Follow Me On Social Media :-
► Website : https://www.smartprogramming.in
► Instagram : https://www.instagram.com/smart_programming
► Facebook : https://www.facebook.com/smartprogramming.india

=====================================

(A small mistake, When we compile program, it gets converted into Abc.class (not Abc.java) at position 8:22, Sorry for the mistake)

TOPICS COVERED IN THIS TUTORIAL :

1. COMPILE AND RUN JAVA PROGRAM

2. HOW TO SET JAVA CLASS PATH TEMPORARY AND PERMANENT

========================================================================================

1. COMPILE AND RUN JAVA PROGRAM

Following are the steps to compile and run java program :

Step 1 : Open CMD

Step 2 : Check whether java compiler is accessed by CMD or not, for this type "javac" and press enter key.

Step 3 : If it says "javac is not recognized as an internal or external command", then we have to set path, for temporary path set type "set path= C:\Program Files\Java\jdk1.8.0_45\bin" and press enter, its my javac path, you have to provide your java classpath. But if it directly displays some definitions, then proceed to next step.

Step 4 : Then open drive where the program is saved, like "d:" and press enter

Step 5 : Then if program is saved in any folder, type "cd folder_name", otherwise skip this step.

Step 6 : Now compile the program, "javac Abc.java" (Abc.java is java file name)

Step 7 : If there is any error it will display, if not then it will create a .class file

Step 8 : Now run java program, type "java Abc" (Abc is .class file name), it will display the output

----------------------------------------------------------------------------------------------------------------------------------------------------

2. HOW TO SET JAVA CLASS PATH TEMPORARY AND PERMANENT

=== For Temporary Path Set : ===

Step 1 : Open CMD

Step 2 : Type "set path= C:\Program Files\Java\jdk1.8.0_45\bin" and press enter, its my javac path, you have to provide your java classpath.

Step 3 : Then you can check whether classpath is successfully set or not, for this type "javac" and enter, if it displays some definations then path is set successfully, but if it says "javac is not recoginsed as an internal or external command" then path was not set, retry again.

=== For Permanent Path Set : ===

Step 1 : Open "My Computer" Properties.

Step 2 : Click "Advanced System Settings" (present on left side of screen), it will open a dialog box.

Step 3 : Click "Environment Variables", it will again open a new dialog box.

Step 4 : Then here we can set path, simply provide variable name as "path" and Value "C:\Program Files\Java\jdk1.8.0_45\bin".

Step 5 : Open CMD and type "javac" and enter, it will display some definitions, Successfully set path permanently.