It's not a secret anymore!
The moose likes Beginning Java and the fly likes package not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "package not found" Watch "package not found" New topic

package not found

deepak borole

Joined: Nov 13, 2005
Posts: 25
I have a XP machine. i have installed j2eesdk-1_4_02-2005Q2-windows on my machine. it has been installed in c drive in sun folder. how to set the class path because i am gettin error in compiling a servlet which contains import javax.servlet.* and compiler is not finding the package.

Winners Dont Do Different Things, They Do Things Differently !!!
Raymond Villeno
Ranch Hand

Joined: Jun 21, 2005
Posts: 63
javax.servlet.* package is I think is in a web container/server library try looking for it in web container such as tomcat and the likes... and servlets are compiled by web containers you can compile those but you have to edit your classpaths first..


"Work Smart Not Hard"
paul wheaton

Joined: Dec 14, 1998
Posts: 20965

Do you have a j2ee.jar somewhere? That's the standard stuff from sun. You would put that filename in your classpath.

permaculture Wood Burning Stoves 2.0 - 4-DVD set
I agree. Here's the link:
subject: package not found
jQuery in Action, 3rd edition