aspose file tools*
The moose likes Servlets and the fly likes what happen if i add jar file which is in hard drive Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "what happen if i add jar file which is in hard drive" Watch "what happen if i add jar file which is in hard drive" New topic
Author

what happen if i add jar file which is in hard drive

Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
i make a web application in Netbeans IDE.
I have added severval jar files which are in hard drive.
if i make finally war file is it working properly?
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3218
    
  49

I have added severval jar files which are in hard drive.

Does this mean you were making your web application outside the hard drive?
If those JAR files were placed inside the WEB-INF/lib directory of the WAR, it'd work.


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 606

Devaka Cooray wrote:
I have added severval jar files which are in hard drive.

Does this mean you were making your web application outside the hard drive?
If those JAR files were placed inside the WEB-INF/lib directory of the WAR, it'd work.


It could mean that the jar files are being added to the class path and not the lib folder.
I'd recommend coping the jar files from whatever location you have them to the WEB-INF/lib folder. That way they would be in the class-path while writing the app and would also be available at run time to the war file....


Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 606

Devaka Cooray wrote:Does this mean you were making your web application outside the hard drive? .


Not entirely impossible you know -- if you have ftp access to the server its possible to be coding on the server while having the jar on the local hard disk. Not seen this being done anytime though
 
 
subject: what happen if i add jar file which is in hard drive