windows configure java envrionment variable
Windows configuration:
1.configure path environment variable
use administrator role,open cmd
2.set path variable
C:\Windows\system32>setx /m PATH "%PATH%;C:\code\mysql-connector-java-5.1.39-bin.jar"
3.check path variable
C:\Windows\system32>echo %PATH%
or
C:\Windows\system32>path
4.path and classpath compare
path:windows look for executable file(.exe, .bat)
class:jvm look for executebale file(.class)
for java,jvm is only one os. for jvm, class file is the executable file.
to tell jvm ,where to look for executbale file ,you need define classpath argument.