• 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

JSPs and -classpath

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi !
I have a question I cannot solve : I have a web application that runs JSp, which calls a function of a Java class.
This class needs elements of a particular .jar.
When I wrote my Java class, I made tests from another java class, but it couldn't run or compile without including the -classpath option in my command line (ex javac -classpath /product/bba/interface/lib/bba.jar).
So now that I want to call my class from a JSP page, how can I do ?
Thanks for any help,
Gaelle.
 
Ranch Hand
Posts: 1072
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you include that jar file in your web app?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any jars in the web server container's lib folder(tomcat/lib, resin/lib, etc) will be available automatically to all webapps. To make a jar available for a particular web app, place it in the web app's WEB-INF/lib folder.
hth,
bear
 
reply
    Bookmark Topic Watch Topic
  • New Topic