Know/Java

[Eclipse] Absent Line Number Information

Marine™ 2007. 7. 23. 16:22
반응형
TIP. Eclipse에서 Debug시 "Absent Line Number Information"를 만났을때

eclipse에서 ant로 컴파일시에 주로 나타나며, 대부분 아래와 같은 이유때문에 메세지가 나온다.

eclipse에서 ant로 빌드시에 eclipse 세팅환경은 ant빌드시에 영향을 미치지 않는다.
하여 ant에게 디버깅 정보를 알려주기 위해서는,
build.xml에 아래와 같이 디버그 정보를 알려줘야 한다.

< javac ... debug="true" .../>

[출처: myeclipseide.com ]

The solution given above involving moving your eclipse workspace to be in the app-server's directory is not a very good idea.

The issue, most likely, is that there are two compiles happening -- eclipse's and ant's. The settings for the eclipse compiler don't affect the ant build even if you launch the ant build from within eclipse. Ant controls it's own compiler settings. You can tell ant to generate debugging info like this:

Code:

< javac ... debug="true" .../>



-cbare
반응형

'Know > Java' 카테고리의 다른 글

ant native2ascii  (0) 2009.04.22
MINA - Logging Configuration  (0) 2008.10.14
api 문서 링크  (0) 2006.07.20
DataSource를 이용한 ConnectionPool 설정  (0) 2006.05.16
Eclipse에 Tomcat Server플러그인 설치하기  (0) 2006.05.05