• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 4328
238
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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....
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic