Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open existing tomcat web application project in eclipse

I want to open my web application which I made using Terminal/Text Editor on Linux into eclipse on windows.

I tried to open it by doing Import existing project but I don't see my servlet files i.e .java files in it and i also see error mark on my WEB.XML. ty154 is my project name. My Directory structure is Tomcat -> Webapp->ty154

Ty154->Images & ->webinfo

Webinfo->classes

I have my JSP files in the ty154 folder and Images inside Image folder. I have my .JAVA and .Class file inside Classes folder.

Please help me how to open and configure my project in eclipse.

Thanks in advance !!

like image 806
Harishsingh Thakur Avatar asked Jan 31 '26 10:01

Harishsingh Thakur


1 Answers

Its not possible to import the project that you have created using terminal/text editor in to eclipse.You have to create a Dynamic Web Project under eclipse and copy paste the java files under source directory of the project. The jsp and other html files will go in to WebContents folder of the project. Once this is done the eclipse project can be copied and can be imported in to any other eclipse installations.The best read is:https://help.eclipse.org/latest/index.jsp?topic=/org.eclipse.wst.webtools.doc.user/topics/twcreprj.html

like image 137
Vivek Avatar answered Feb 01 '26 23:02

Vivek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!