I am currently attempting to access a code designed by another programmer in my company. My job is to take his code from the jar
he designed and make it easier to use for those who are less technologically savvy.
The first time I tried to run the code, it seemed to run fine, but for some reason the second time, it gave me the following error:
"StringEscapeUtils cannot be resolved"
He has imported the above file and I have added commons.apache-3 3.3.4
into my External Libraries on Eclipse
, but still I can't get the program to even run. It doesn't tell me I have an error, but a red exclamation point appears by the package in the package browser.
I've never seen this error before. I know for a certainty that the other coder's program works exactly as he intended it. I have all of his code extracted into my eclipse. Is there any way at all to fix this error so that I can modify the code?
答案 0 :(得分:0)
If you're using maven, try to clean the dependency in .m2 folder. If not, go to project properties/Deployment assembly and add the lib folder there.
It should solve your problem.
答案 1 :(得分:0)
相关课程属于Apache Commons Lang包。尝试将其添加到您的项目中。如果它使用Maven,请在pom.xml
中添加以下依赖项:
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.4</version>
</dependency>
答案 2 :(得分:0)
我做了所有这些事情。他们都没有什么区别。然后,我从罐子里拿出一个蝙蝠文件,然后,从那里干净地编辑它。
答案 3 :(得分:0)
我遇到了同样的问题,只是重新启动apache服务器似乎修复了它。