• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

running jsp's

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
prasanthi kothapa
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic