王奕然
王奕然

Reputation: 4049

eclipse import project from tomcat webapp

i have a project in tomcat,and use startup to set up it.

enter image description here

i want to import it into eclipse in order to debug it,and then i try to import project like this:

enter image description here

it displays no project found, maybe it does not have .project file

how could i import it correctly and conviently? there are only class in web-inf,so how could copy it?

Upvotes: 0

Views: 1575

Answers (2)

cmd
cmd

Reputation: 11841

There is no direct way to do this, however... Perhaps, the simplest way to do this is the following:

  • Download Eclipse Java EE
  • Create a Dynamic Web project
  • Copy the contents of your webapp (or war) to the WebContent folder

If the project contains Java sources andyou have access to them add them (including the package structure) to the src folder.

Upvotes: 0

njjnex
njjnex

Reputation: 1555

Do the following:

  1. Create new Dymanic Web Project in Eclipse
  2. Right click -> Import -> General -> File system, on this project.
  3. Choose source directory.

And check Java Build Path in your project to be sure your Libraries correctly loaded.

Upvotes: 1

Related Questions