This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply 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
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2691
    
    3

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 (Download) - the free mock exam kit for SCJP / OCPJP
Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 576

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: 576

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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: what happen if i add jar file which is in hard drive
 
Similar Threads
find db.db in a jar file by JFileChooser
moving a .jar to sys dir
Directory Location of Your Currently Running Java Application
Jar file
where to add jar files