문제점해결

The method getRemoteAddr() from the type ServletRequest refers to the missing type String

예쁜꽃이피었으면 2014. 7. 29. 23:54

The method getRemoteAddr() from the type ServletRequest refers to the missing type String

 

잘 수정해서 담아온 프로젝트 import를 시켰는데..에러가!!

 

구글에서 해결방법을 찾았다.

http://www.programmershare.com/2993806/

[ The JSP page request.getContextPath () "...... refers to the missing type String" error ]

Today I will a project from another machine, copying machine, and re-install JDK1.6 (the original JDK machine is 1.5), and configure the JDK environment,

The entire project is deployed in each JSP page request.getContextPath () "appears at the bottom of a red wavy line, the error message prompts

"The method getContextPath () from the type HttpServletRequest refers to the missing type String",

At this point, we simply this:

1 Right-click the project - Build Path - Configure Build Path Libraries option, you will find the error of jre Libraries Remove out.

2 and then right-click the project - Build Path - Add Library, select the JRE System Library, select the Workspace defaulr JRE (jdk1.6) (JDK had been successfully installed and configured), and then Finish.

 

빌드 경로 - JRE 라이브러리의 오류이다.

 

1. 오류가 나는 프로젝트 우클릭

2. Build Path - Configure Build Path Libraries option

3. 빨갛게 오류가 보이면(unbound)~ 여기를 수정하면 된다~

( 프로젝트를 가져온 곳과 지금 내 pc환경이 맞지 않아서 나는 오류이다.

나의 경우는 jdk1.7이 필요한데 jdk1.6까지밖에 없어서 다운받아서 설정해줬다. )

 


반응형