Wednesday, 1 October 2014

Importing a JSP WebApp into eclipse

Hmm, seems to be a simple thing right, but actually it isn't that easy for beginners :/

First things first, you need to make sure that you have all the right plugins installed, I'd recommend that you rather just use the Eclipse Web Tools platform instead.

After this, you'd think that just using import should do it but it's a little trickier than that!

1. Right Click on the | Projects Explorer View > Dynamic Web Project|
2. Untick the Use default location option that is ticked by default.
3. Click on Browse > Navigate to the path of the existing project.
4. Enter the name of the project that you want to import it as.
5. Select your desired runtime from existing ones or create a new one.
6. Select the required Dynamic web module version.
7. Select the default configuration for the runtime that you've selected.
8. Click finish and you're done!

Seems to be simple but took a little longer than I should have to figure it out.
NOTE- On clicking finish you may get a java.lang.NullPointer error, if you do, just restart the instance of eclipse and it should work for me, happened in my case so just a heads up!

Hope this helps you guys out.

1 comment: