Link to home
Start Free TrialLog in
Avatar of mac_g
mac_gFlag for Saudi Arabia

asked on

eclips , build.xml file HelloWorldServlets.java:7: package javax.servlet does not exist

this is my first java - servlet programe, would like to deploy in apache server,
using tool, eclips /build.xml file.

i am able to compile XML file without an issue, while try to run the build file  getting following error message. please advise, attached build.xml file for your reference
------------- ----------
 D:\jeeExamples\webapps\build.xml:44: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 1 source file to D:\jeeExamples\webapps\bin
    [javac] D:\jeeExamples\webapps\src\com\servlets\HelloWorldServlets.java:7: package javax.servlet does not exist
    [javac] import javax.servlet.ServletException;
    [javac]                     ^
    [javac] D:\jeeExamples\webapps\src\com\servlets\HelloWorldServlets.java:8: package javax.servlet.http does not exist
    [javac] import javax.servlet.http.HttpServlet;
    [javac]                          ^
    [javac] D:\jeeExamples\webapps\src\com\servlets\HelloWorldServlets.java:9: package javax.servlet.http does not exist
    [javac] import javax.servlet.http.HttpServletRequest;
    [javac]                          ^
    [javac] D:\jeeExamples\webapps\src\com\servlets\HelloWorldServlets.java:10: package javax.servlet.http does not exist
    [javac] import javax.servlet.http.HttpServletResponse;
    [javac]                          ^
Avatar of mac_g
mac_g
Flag of Saudi Arabia image

ASKER

please find attached XML file
BUILD.XML
SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mac_g

ASKER

please refer to screen shot , where u can see i have placed all JAR files  in referenced libraries
temp.doc
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mac_g

ASKER

i have attached my orig file. Can you please look at fine and let me know, location add above snippet, I dont have great knowledge in build file, if u can advise me would be great
BUILD.XML
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
:)