aspose file tools*
The moose likes Servlets and the fly likes compilation of Servlets..... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "compilation of Servlets....." Watch "compilation of Servlets....." New topic
Author

compilation of Servlets.....

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi,
jswdk 1.0.1
How do i set up the class files so that i can compile Servlets.
I mean I did try setting up the path and classpath and followed the installation instructions for the server JSWDK 1.0.1
the program complains about not finding javax.servlet and java.servlet packages when mentioned as import statements.
How do I set up for proper compilation or any site for installation instructions.
My autoexec.bat file has the path set up to jdk\lib\tools.jar
Any other changes to be done.
Thanks.
eram
Ranch Hand

Joined: Mar 14, 2000
Posts: 38
find the servlet.jar file from the jswdk dir and then copy the file to jdk\jre\lib\ext dir.
Set your classpath to the above dir and go......
Hope I am right.
CHEN FEIYAN
Greenhorn

Joined: Jul 01, 2004
Posts: 10
I copied servlet.jar to the %jdk%/jre/lib/ext directory, but my compiler still can't find java.servlet package, I noticed that in javax.servlet package has some classes very similar to the java.servlet package, can I use that in stead?
Thanks
Vivian
eram
Ranch Hand

Joined: Mar 14, 2000
Posts: 38
Well , This is what I did:
I downloaded jsdk2.1 from sun's site:
Just do nothing , other than changing your autoexec.bat to :
set CLASSPATH=.;C;\JDK1.2.2\JRE\LIB\EXT;
I did have the same problem with jswdk1.0.1 , as it complains to find java.servlet.* package with other errors.
The above sol works.
have fun!!!
S Varana
Greenhorn

Joined: Feb 04, 2004
Posts: 18
I am able to start the server and stop it but when i write a helloworld program with it i get error saying httpservlet not found etc etc.....
I downloded JSDK in NT and they ask me to set classpath variable.
But there is nothing like it.ANd i am still able to work with jDK1.2.2
The only thing i have iS PATH where i have given C:\jdk1.2.2\bin
They also talk about java_home
what is this??
where should i put my tools.jar file
In the PATH or should i create a env variable called CLASSPATH
It is very sad to note that most of us have problems with this
I think SUN must be more clear...
Any one who has downloaded this please give me all the details
of ur classpath and other changes u did.

thanx
tony.b
Greenhorn

Joined: Mar 02, 2002
Posts: 4
Hi all,
Here is the exact solution for ur all problems;
you will have to add CLASSPATH in ur autoexec or environment tab what u r using. Simply these following three statements:
c:jswdk-1.0.1\lib\jspengine.jar;
c:jswdk-1.0.1\lib\servlet.jar;
c:jswdk-1.0.1\lib\xml.jar;
if u r using NT then go from start to settings then control panel. Form contrl panel double click on system. In System window select environment tab and then highlight the CLASSPATH varible and add these above statements at the end ur already set path.
I think it will solve problems of every one
If any one is still not on right track, then let me at ur earliest.
bye
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: compilation of Servlets.....