package javax does not exist

Im compiling a simple servelt with "javac -classpath c:\jdk1.4\lib\Servlet.jar Hola.java" and i stiil get the "package javax does not exist" error what do i do now?
[185 byte] By [iazurita] at [2007-9-26 2:48:26]
# 1

I think when you use the -classpath option it replaces the classpath you set before invoking the compiler.

Add your servlet.jar file to your OS environment classpath and try again. Or, you can define your whole classpath with the -classpath option.

On Windows:

c:>set classpath=c:\dir\servlet.jar;%classpath%

WynEaston at 2007-6-29 10:33:45 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...