Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

importing the servlet classes 1

Status
Not open for further replies.

Bong

Programmer
Dec 22, 1999
2,063
US
Greeting.

I've built several applications in Java (although I'm still at a very basic level of ability) but now I am trying to build an applet<-->servlet application. I never really gave much thought to where I was importing the classes from, I would just import them:
Code:
import java.awt.*;
import java.io.*;
//...etc
and they'd be there. Following that philosophy, I attempted (with jdk1.6.0_02) the same thing with the servlet classes:
Code:
import javax.servlet.*;
import javax.servlet.http.*;
and they're not there:
compiler output said:
Svlt1.java:1: package javax.servlet does not exist
Svlt1.java:2: package javax.servlet.http does not exist
So, I'm wondering, where can I get the servlet classes?

_________________
Bob Rashkin
 
Thanks, Dian.
This may mean that I'm too ignorant even to be attempting this but I did download J2EE and I couldn't find javac. In the SDK\BIN directory there was a wscompile bat file but I don't know how use that. If I have to ask how to compile in J2EE, does that mean I shouldn't?

_________________
Bob Rashkin
 
Thanks for your patience Dian. This is getting more complicated than I thought it would be (just trying to help my son with regulating music downloads from his band's website). Usually, the best language is the one you know, but a)that might not be true in this case, and b)I might not know the language as well as I thought.

_________________
Bob Rashkin
 
Java has become more a world than a language, so dealing with a new "Java flavour" like J2EE, J2ME or whatever you can think of involves knowing the Java programming basics (J2SE) plus the new architecure.

Even inside "pure Java" you can find a world in each part or API: Swing, JavaMail, JXFS ...

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top