我昨天安装了JProfiler。并将其与NetBeans集成。在此之后我无法运行项目,所以我决定卸载JProfiler。但是现在我可以在错误日志中看到消息,见下文。为什么NetBeans仍在寻找 jprofilerti.dll ?我该如何处理这个错误?
消息:
Using CATALINA_BASE: "C:\Users\MyUser\AppData\Roaming\NetBeans\7.4\apache-tomcat-7.0.41.0_base"
Using CATALINA_HOME: "C:\Program Files\Apache Software Foundation\Apache Tomcat 7.0.41"
Using CATALINA_TMPDIR: "C:\Users\MyUser\AppData\Roaming\NetBeans\7.4\apache-tomcat-7.0.41.0_base\temp"
Using JRE_HOME: "C:\Program Files\Java\jdk1.7.0_45"
Using CLASSPATH: "C:\Program Files\Apache Software Foundation\Apache Tomcat 7.0.41\bin\bootstrap.jar;C:\Program Files\Apache Software Foundation\Apache Tomcat 7.0.41\bin\tomcat-juli.jar"
Error occurred during initialization of VM
Could not find agent library C:\PROGRA~1\JPROFI~1\bin\WINDOW~1\jprofilerti.dll in absolute path, with error: Can't find dependent libraries
答案 0 :(得分:0)
在%CATALINA_BASE%/ bin或%CATALINA_HOME%/ bin中找到setenv.bat
,并删除将-agentpath VM参数添加到JAVA_OPTS环境变量的行。