mac_g
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\bui ld.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\servl ets\HelloW orldServle ts.java:7: package javax.servlet does not exist
[javac] import javax.servlet.ServletExcep tion;
[javac] ^
[javac] D:\jeeExamples\webapps\src \com\servl ets\HelloW orldServle ts.java:8: package javax.servlet.http does not exist
[javac] import javax.servlet.http.HttpSer vlet;
[javac] ^
[javac] D:\jeeExamples\webapps\src \com\servl ets\HelloW orldServle ts.java:9: package javax.servlet.http does not exist
[javac] import javax.servlet.http.HttpSer vletReques t;
[javac] ^
[javac] D:\jeeExamples\webapps\src \com\servl ets\HelloW orldServle ts.java:10 : package javax.servlet.http does not exist
[javac] import javax.servlet.http.HttpSer vletRespon se;
[javac] ^
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\bui
[javac] Compiling 1 source file to D:\jeeExamples\webapps\bin
[javac] D:\jeeExamples\webapps\src
[javac] import javax.servlet.ServletExcep
[javac] ^
[javac] D:\jeeExamples\webapps\src
[javac] import javax.servlet.http.HttpSer
[javac] ^
[javac] D:\jeeExamples\webapps\src
[javac] import javax.servlet.http.HttpSer
[javac] ^
[javac] D:\jeeExamples\webapps\src
[javac] import javax.servlet.http.HttpSer
[javac] ^
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
please refer to screen shot , where u can see i have placed all JAR files in referenced libraries
temp.doc
temp.doc
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
BUILD.XML
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:)
ASKER
BUILD.XML