在解决这个问题前需要告诉大家,Tomcat启动时会调用系统变量,但是在eclipse配置时可能是调用eclipse自己配置的变量。
可以自己测试System.out.println(System.getProperty("java.library.path"));打印出来的结果与Windows环境变量设置的是否一致就可以证明了。
为了博客链接点击量打出错误信息:
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:
感谢该博主文件参考还有其他博主:
http://blog.sina.com.cn/s/blog_53a169850100a9c2.html
解决方法:
鼠标右键点击自己项目->Profile as ->Profile configurations
总结:善于使用Google或百度等搜索引擎解决问题。