You need to do some research and find out:
Where is that package's class definitions? Is it in a jar file?
Is that jar file on the classpath when you try to compile/execute the program?

Your last post does not answer any of those questions.

Quote:

how can i run the servlet i want a simple solution without using special server's

A servlet runs inside of a server. It expects to be called from the server and will return control to the server.
You do not run a servlet like a desktop app.

02-22-2012, 06:37 PM

Tolls

Re: run a servlet

If you want to run your servlet then you'll need a server to run it on.

ETA: Phooey...

02-22-2012, 07:11 PM

betty1500

Re: run a servlet

the only way i know is to search for servlet so i did :=(:
and gave the name of thejar files,should i extract them
i dont know were to look for a path :(whew):

02-22-2012, 07:15 PM

Norm

Re: run a servlet

If you have the jar file with the missing package, you need to have that jar file available to the compiler. If you use the javac command to compile your program you would use the -cp option to tell the compiler where to find the jar file.
If you are using an IDE to do the compile, you will have to ask the IDE where to put the jar file so it can find it.

02-22-2012, 07:20 PM

betty1500

Re: run a servlet

how can i do so using netbeans?

02-22-2012, 07:23 PM

Norm

Re: run a servlet

There is a section of this forum for IDEs. You could try asking there.