Setting java environment variobles:-
steps
1. go to environment variables. create new system variable
NAME : JAVA_HOME
PATH : C:\Program Files\Java\jdk1.8.0_151
NAME : path
Path : %JAVA_HOME%/bin
we need to add both variables in set only either in system variables or in user variables.
go to classpath variable
add a "."(dot) in classpath.
steps
1. go to environment variables. create new system variable
NAME : JAVA_HOME
PATH : C:\Program Files\Java\jdk1.8.0_151
NAME : path
Path : %JAVA_HOME%/bin
we need to add both variables in set only either in system variables or in user variables.
go to classpath variable
add a "."(dot) in classpath.
Comments
Post a Comment