Install the software and set the path :-
- Download the software.
- Install the java software in your machine.
- Set the environmental variable.
Download the software:-
ü Download the software from internet based on your operating system & processor
because the software is different from operating system to operating system & processor to processor.
Install the java software in your machine:-
Local Disk c: —>program Files—>java —>jdk(java development kit),jre(java runtime nvironment)
After installing To check whether the java is installed in your system or not open the command prompt type javac command.
Process to open command prompt: Start —>run—->open:cmd—->ok
C:\Users\ATUL>javac
“ ‘javac‘ is not recognized as an internal or external command ,operable program or batch file.”
Whenever we are getting above information then decide in our system java is installed but the java is not working.
Why java is not working Reason:-
C:\Users\ATUL>javac
Whenever we are typing javac command on the command prompt operating system will pickup javac command search for that command,
- in the internal operating system calls but javac is not available in the internal system calls list.
- If it not available in internal system calls list then immediately it won’t raise any error, it will search in environmental variables
In above two cases if the javac command is not available then operating system will raise error message “javac is not recognized as an internal or external command”To overcome above problem to make eligible javac command operating system set environmental variables.
The location of javac command is : C:\Program Files\Java\jdk1.7.0\bin
| Right click on mycomputer | —>properties—– | >Advanced system setting—>Environment Variables — |
| User variables >new >——- | variable name : path | |
| Variable value : C:\programfiles\java\jdk1.6.0_11\bin; | ||
| —–>ok—- | >ok |
Now the java is working in your system to check open the new command prompt & type javac command then we will get list of commands then decide in your system java is working.
In your system or your friend system to check java is installed or not open the command prompt
- type javac command
- If error message displayed java is not working.(‘javac’ is not recognized as an internal or external command)
- If list of commands are displayed then decide java is working properly.
Now the java is working in your system to check open the new command prompt & type javac command then we will get list of commands then decide in your system java is working.
In your system or your friend system to check java is installed or not open the command prompt
- type javac command
- If error message displayed java is not working.(‘javac’ is not recognized as an internal or external command)
- If list of commands are displayed then decide java is working properly.