错误1:
myeclipse启动tomcat会出现 a java exception has occured错误
解决方法:
1、JVM报错,首安装,环境变量有没有问题,java和javac命令运行正常。
2、查阅网上资料,可能是版本问题。
3、将tomcat---bin目录下的tomcat-juli.jar包加载到tomcat的paths的第一栏中,就可以了。
如下图:
myeclipse--->window----preferences
错误2:
Access restriction: The type JPEGCodec is not accessible due to restriction on required library
解决办法:
eclipse的设置问题,它默认把这些受访问限制的API设成了ERROR,你只要把
Windows-Preferences-Java-Complicer-Errors/Warnings
里面的Deprecated and restricted API中的Forbidden references(access rules)选为Warning就可以编译通过了。