I installed Tomcat on my computer and followed the instructions in the "CoreServlets" online book to set up the server. I set the JAVA_HOME variable, set the port to 80 and enabled the root context . I tried running the server both ways: by double-clicking startup.bat and by typing "catalina run" on my command prompt. But both failed. Yesterday, the first approach (double-clicking startup.bat) failed but the second approach (typiing "catalina run") worked. I restarted my computer today and neither works.
The error says "'Dsun.io.useCanonCaches' is not recognized as an internal or external command,operable program or batch file."