File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes running jsp's Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "running jsp Watch "running jsp New topic
Author

running jsp's

prasanthi kothapa
Ranch Hand

Joined: Oct 19, 2000
Posts: 30
hi guys,
i have javawebsrever2.0 running on my machine.
i have downloaded jswdk to run my jsp's..
please tell me how to go about it.

thanx,
prasanthi
Ashok Anumandla
Greenhorn

Joined: Dec 06, 2000
Posts: 2
If you want to run jsp's in jswdk ,copy your jsp file under examples/jsp directory, startserver under jswdk home directory and url is http://localhost:8080/examples/jsp .If you want to run your working directory you need to edit your webserver.xml file, in that you need to change webApplication id ,mapping and docBase like exsisting one.
By
Ashok


a.ashok
prasanthi kothapa
Ranch Hand

Joined: Oct 19, 2000
Posts: 30
hi ashok,
i have my jsp file in the examples/jsp directory.On saying
startserver & giving the URL http:\\localhost:8080\ i am
getting the home page, but on running my jsp i get the
following error in the console:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
please help me out......
thanks..
prasanthi
Ashok Anumandla
Greenhorn

Joined: Dec 06, 2000
Posts: 2
This problem is classpath in your environment, your classpath should contains following three.
1.for javac classpath= c:\jdk1.2.2\lib\tools.jar
2.for jsp class file classpath=c:\jswdk-1.0.1\lib\jspengine.jar
3.for servlets classes classpath=c:\jswdk-1.0.1\lib\servlet.jar
Above three must be in your classpath.Try to add like your home directory.
I think this will help you
Thanx
Ashok
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: running jsp's