javac not working in windows command prompt

If you added it in the control panel while your command prompt was open, that won’t affect your current command prompt. You’ll need to exit and re-open or simply do: set “path=%path%;c:\program files\java\jdk1.6.0_16\bin” By way of checking, execute: echo %path% from your command prompt and let us know what it is. Otherwise, make sure there … Read more

How to include jar files with java file and compile in command prompt

You can include your jar files in the “javac” command using the “-cp” option. javac -cp “.:/home/path/mail.jar:/home/path/servlet.jar;” MyJavaFile.java Instead of “-cp” you could also use “-classpath” javac -classpath “.:/home/path/mail.jar:/home/path/servlet.jar:” MyJavaFile.java You could including the jars every time you compile by setting the environment variable “CLASSPATH” correctly. The environment variable will store the path where the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)