Java EE Help

Discussion in 'OT Technology' started by morgue, Aug 13, 2007.

  1. morgue

    morgue New Member

    Joined:
    Jul 10, 2004
    Messages:
    8,278
    Likes Received:
    0
    Hey, I'm trying to get this to compile

    import javax.servlet.http.HttpServletRequest;

    public class ExampServlet {

    public static void main (String args[]){
    System.out.println("asdf");
    }
    }

    but I'm getting package javax.servlet.http does not exist

    What do I need to download and install from here?
    http://developers.sun.com/downloads/

    thanks
     
    Last edited: Aug 13, 2007
  2. fatlip

    fatlip Transcendence Into The Peripheral

    Joined:
    Jun 16, 2001
    Messages:
    522
    Likes Received:
    0
    Location:
    UK
  3. morgue

    morgue New Member

    Joined:
    Jul 10, 2004
    Messages:
    8,278
    Likes Received:
    0
  4. fatlip

    fatlip Transcendence Into The Peripheral

    Joined:
    Jun 16, 2001
    Messages:
    522
    Likes Received:
    0
    Location:
    UK
    Google it, you might be able to get it from one of the java packages, I haven't developed a servlet for years so I'm a bit out of the loop so to to speak.
     
  5. morgue

    morgue New Member

    Joined:
    Jul 10, 2004
    Messages:
    8,278
    Likes Received:
    0
    Ok cool I got it, now for future reference:

    I installed
    JDK 6 Update 2 from http://java.sun.com/javase/downloads/index.jsp
    and
    Java EE 5 SDK Update 2 from http://java.sun.com/javaee/downloads/index.jsp (with JDK)

    Then I installed JCreator and under
    Configure -> Options -> JDK Profiles -> Edit -> Add Archive

    If everyone was set to default during installations the .jar file should be under
    C:\Sun\SDK\lib\j2ee.jar

    That does the trick to compile this file :big grin:

    There's also a file under javase downloads called JDK 6 Update 1 with Java EE 5 SDK Update 3 Preview 2

    thanks to the guys at jcreator forum
     

Share This Page