搞不懂tomcat为什么出这么多难题给我们,今天一晚上都在折腾配置。上网到处查,不过终于解决了。在windows里启动dos后,在dos窗口的工具栏点击“属性”按钮,调整内存属性即可。“忍气吞声学jsp,虽然我很气愤,但不能不学啊。” 

解决方案 »

  1.   

    DOS has a limit on available environment space. You can adjust this in CONFIG.SYS. If your SHELL statement is set to COMMAND.COM, simply add/modify the SHELL parameter for adjusting the environment size: SHELL=C:\windows\command.com C:\windows /p /E:4096
     
    will set off 4 Kb for environment variables.Command line in DOS has a limit of 127 characters. If you need more room to lanch the JVM then you have the following workaround. Use environment variable like SET MYCLASSPATH = /files/classes/lib/examples.jar
    SET MYARGS  = -Djava.security.policy=/files/policy
    java -cp %MYCLASSPATH% %MYARGS% myClass 
    Use a BAT file.
      

  2.   

    设置start.bat的属性,内存改2048