Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: setting up the JAVA EE environment

  1. #1
    Junior Member
    Join Date
    Dec 2012
    Posts
    7
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default setting up the JAVA EE environment

    i installed java ee sdk6
    set path variable to the bin of jdk
    i set up the deployment(Apache Tomcat) as well as development environment required for java-ee
    i wrote a html file, a servlet and a web xml and put them in proper places.
    but when i try to compile the servlet using command prompt it says that servlet api is not a
    part of jdk...so cannot be imported
    can someone suggest me some solution


  2. #2
    Junior Member
    Join Date
    Apr 2013
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: setting up the JAVA EE environment

    Did you copy servlet.jar file from tomcat/lib to jdk/jre/lib/ext? If not then it would resolve your problem

  3. #3
    Junior Member
    Join Date
    Oct 2013
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: setting up the JAVA EE environment

    you have to configure the class path for servlet-api also in the environment variable only then it can be compile and run

  4. #4
    Junior Member
    Join Date
    Apr 2014
    Posts
    9
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: setting up the JAVA EE environment

    you must set JAVA_HOME environment variable with jdk folder path without ending with ';', and set classpath with servlet-api.jar path .
    note that classpath should start with .; then try ur servlet program
    Have a happy coding.

  5. #5
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: setting up the JAVA EE environment

    @rita khatei, please be aware of forum topic dates - this thread is over a year old, making it ancient history in internet/forum time. Thread locked.

Similar Threads

  1. Assistance requested in setting up JAVA environment
    By bobcox in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: November 2nd, 2011, 10:30 AM
  2. Java swing buttons are flickering in windows 7 environment
    By javasam in forum Member Introductions
    Replies: 1
    Last Post: February 17th, 2011, 09:51 AM
  3. Java swing buttons are flickering in windows 7 environment
    By javasam in forum AWT / Java Swing
    Replies: 1
    Last Post: February 14th, 2011, 12:13 PM
  4. Hiring Senior Java Developer – Trading Environment
    By dsquare in forum Paid Java Projects
    Replies: 0
    Last Post: January 18th, 2011, 09:20 AM
  5. Replies: 1
    Last Post: July 10th, 2008, 05:03 AM