Sunday 15 December 2013

How to RUN JAVA Programs in Win 7 , Win 8 , Win 8.1 with CMD...


               
                     
  • Follow All Step clearly Otherwise It will Not Work.
     
      Step 1:-   If  you want to directly compile a java program in CMD it will give a error like this:

             
           
         Step 2:-So you Need to download jdk8( newest Version) from here:  


 
         
                         Downloaded File will be:
               
                     
                    Now Install (wizard It) that Downloaded JDK file..There are  Easy  steps to install that EXE.
     Step 3:-   After Successfully Installed JDK , You Need to set Enviourment for java Compiler.
                    
                      So just Follow this steps.
                       1:- Goto Your System Drive (Ex:- C:\)
                       2:- In C:\ , Open Program File folder 
                       3:- In Program file folder You Will see " JAVA" folder.
                                ( if there is no java folder then , there is some Error in installation of JDK)
                       4:- In Java folder You can see 3 folders. Just open "jdk1.8.0" folder. that may be 1st.
                       5:- In jdk1.8.0 > open Bin> right click on any file & Open Properties Of any file.
                       6:- In Properties dialogue box , Copy the Location as Show in below Image.

                      
                      7:- Now Open System Properties:: Right click on Compuer>properties
                      8:- In system Properties , You can see left lanel >Advanced system setting.
  

                      9:- In this Open You see as like below Image:
                             
                       
                        Now click on Enviorment Variables,
                         Another dialogue box will be open like this::

                    
                      10:- Now click on New button & New User Veriable dialogue box will open.
                             


                          Now, Write Variable Name: =path 
                                         (you must have to Write "path", otherwise it will not work)
                                   Write  Variable Value:=C:\Program Files\Java\jdk1.8.0\bin
                          11:- Click ok for all dialogue box.
                         All most process is Done...
            Step 3:- Open Your CMD.
                           And Try out JAVA compiler is work or not.
                  In above image this is my CMD window, Am just change the Background colour , nothing else.
              ==> As you can see JAVAC command is work.
              ==> Now you can Compile your any java program in cmd.
              ==> Try our your Own java code for Comping.
              ==> It will 100% work.
   
                     -->IF ANY QUERY PLS CONTACT ME.
                             
  THANK YOU.
Follow us. 
    by Jags choudhary,Step up Hackers.

No comments:

Post a Comment