Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Are Jar Files Required at run time

 
Arpit Gadle
Ranch Hand
Posts: 69
Linux MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have created a simple web application that sends a email. It worked locally on Tomcat as necessary Jar files were on the classpath. But when i uploaded the same war on the Godaddy server on our hosting domain it failed.

My questions are

1. Is it neccessary to include necessary jar file on which my application is dependent in WAR.

2. How can I find out, which JAR files are required at run time so I can add it in lib directory of my application.


Waiting for your reply,

Arpit
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65653
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. Any jar files that contain classes that are referenced.
 
Arpit Gadle
Ranch Hand
Posts: 69
Linux MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bro,

For your reply.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!