hi everybody, i am new to servlets. i have installed j2ee5.0 sdk in my system and tried to compile a helloworld servlet program. i do not know where to save my program in the sdk directory. i have tried it saving in bin directory but my program gave err saying, "javax.servlet package does not exist". once i get a class file, i know how to deploy my servlet. please tell me the exact path to save my program so that i could compile it.
Thanks ulf, but i did not find servlet-ai.jar file in my system. i have all the setup files that i have mentioned below. j2eesdk-1_4_03-windows j2eesdk-1_4_03-windows-ml java_ee_sdk-5_05-windows let me uninstall the old setups then. please let me know which of them should i install so that i can go ahead with servlets. thanks in advance..
am sorry. i have spent most of the time to find out that jar file to compile my servlet, but could not figure it out. also tried saving the prog everywhere the in directory, but nothing worked out.. is there any other way please..
As I said, the directory where you save your source code doesn't matter. But it's better NOT to mix it up with the SDK itself. The classpath determines where the compiler looks for missing classes. See this tutorial for more detail on that.
Which jar files did you find? Post the names, and we may be able to point out the one you're missing. You can also use the "jar tf" option of the "jar" command to look into jar files (and thus learn which classes they contain).
My previous laptop never exploded like that. Read this tiny ad while I sweep up the shards.
Free, earth friendly heat - from the CodeRanch trailboss