Importing war file into eclipse and build path problem

Posted by Todd on Stack Overflow See other posts from Stack Overflow or by Todd
Published on 2010-01-21T16:19:35Z Indexed on 2010/06/02 4:03 UTC
Read the original article Hit count: 371

Filed under:
|
|
|

Hi,

I am facing some weird problem when importing .war file into eclipse.

alt text

The problem is, the build folder does not contain any necessary class folder. So when I try to set the build path, eclipse reports "Error while adding to build path. Reason: cannot nest output folder 'projectName/build/class' inside 'projectName/build'. From what I understand, 'build' folder is what classes get collected(as build version) right?

I tried to ignore build path and just export .war file into tomcat server, but somehow servlet file keeps showing old code, which I changed in eclipse. So, I am thinking without proper build folder, exported .war will not contain modified servlect code.( I am sorry if this doesn't sound clear)

What can I do to fix this problem? I already tried to create a whole new workspace and restarted eclipse several times and it didn't solve the problem.

© Stack Overflow or respective owner

Related posts about eclipse

Related posts about import