bat下执行java程序报错处理
G:\>java -Xms128M -Xmx512M -server -Dprogram.name=b
omc-sa-tdtpagent -Dfile.encoding=GBK -Duser.timezone=GMT+8 -jar ../test.jar agent 1>td.log
Error: missing `server' JVM at `C:\Program Files\Java\jre7\bin\server\jvm.dll'.
Please install or use the JRE or JDK that contains these missing components.
解决方法:
java -Xms128M -Xmx512M -server
将参数-server删除即可