User Tools

Site Tools


classes:csci366:howto_helloworldservlet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

classes:csci366:howto_helloworldservlet [2017/03/16 06:50] – created localadminclasses:csci366:howto_helloworldservlet [2017/03/16 06:57] (current) – [Compiling a servlet] localadmin
Line 72: Line 72:
 ==== Compiling a servlet ==== ==== Compiling a servlet ====
  
-Compiling is a bit trickier. You will need {{:classes:csci366:servlet-api.jar|the servlet api jar file}} in order to compile. This file is located in /opt/lablibs/servlet-api.jar in the lab, so if you're using the lab to compile, you can just use: javac -cp "./:/opt/lablibs/servlet-api.jar" <name>.java. +Compiling is a bit trickier. You will need {{:classes:csci366:servlet-api.zip|the servlet api jar file}} in order to compile. This file is located in /opt/lablibs/servlet-api.jar in the lab, so if you're using the lab to compile, you can just use: javac -cp "./:/opt/lablibs/servlet-api.jar" <name>.java. 
  
 If you're not in the lab, you'll need to adjust your classpath or import the .jar into Netbeans of Eclipse. Instructions for doing that can be found [[classes:csci366:loading_libraries|here]]. If you're not in the lab, you'll need to adjust your classpath or import the .jar into Netbeans of Eclipse. Instructions for doing that can be found [[classes:csci366:loading_libraries|here]].
classes/csci366/howto_helloworldservlet.1489647031.txt.gz · Last modified: by localadmin