How to add Java EE Servlet API library on your compile classpath

Hi,

I am new to IntelliJ and I have been working on a few small projects to familiarize myself
with IDE and how to develop Java web projects with it.

I recently picked up Professional Java for Web Applications to practise my web development skills
and I wanted to try it because it focuses on IntelliJ rather than eclipse.

My main issues are from not nowing my way around the IDE at all. I have come across a problem
that I have been unable to figure out how to do correctly even while im sure it's not a complicated thing to do.

How do you add Java EE Servlet API library on your compile classpath ?
Where is the compile classpath located in IntelliJ?

Any help is appreciated!

2 comments
Comment actions Permalink

See http://www.jetbrains.com/idea/webhelp/configuring-module-dependencies-and-libraries.html .

Normally you just add your application server to the dependencies with the Compile scope.

1
Comment actions Permalink

Thanks, that worked! I didn't set the Scope to Runtime right away which
confused me a bit as that part is not mentioned in the library.

0

Please sign in to leave a comment.