Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JSPs and -classpath

Status
Not open for further replies.

Gaelle

Programmer
Jun 20, 2001
62
FR
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.

 
You need to create a Web Application and place all the jars that you are dependant upon in the WEB-INF/lib directory. Should solve all of your problems.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top