User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 401,565 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,446 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 1347 | Replies: 1
Reply
Join Date: Aug 2007
Posts: 1
Reputation: haroldjclements is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
haroldjclements haroldjclements is offline Offline
Newbie Poster

How to reference a .jar file

  #1  
Aug 16th, 2007
I have a .jar file located in my program files that is from a third party and is require when running the bean on the web server.

When running the app in a non jsp environment, I use the
java –cp {jar file name and location} [class name]

How do I reference the path of my .jar file, so that it is available when the jsp bean is run on the web server?

Thanks,
Harold Clements
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,693
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 195
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: How to reference a .jar file

  #2  
Aug 16th, 2007
place it in the correct location within your web application and it will be picked up automagically.
that location is of course the WEB-INF/lib directory.
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JSP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 3:54 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC