How do I install a 3rd party JAR file to my tomcat web application?
I have placed it in every folder I can think of, and am referencing it like:
import com.google.api.translate;
Is there a particular folder? I have tried WEB_INF/lib
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If all apps on Tomcat need that JAR, the place to put it would be /lib if you’re using Tomcat 6.x or higher and /server/lib if it’s version 5.x or lower.
If only your app needs a 3rd party JAR, put it in WEB-INF/lib.
I hope you’re packaging your app as a WAR file.
I’d recommend reading a bit more about Tomcat and CLASSPATH before you proceed.
This doesn’t look like proper Java to me. Shouldn’t that be:
What is the name of the JAR containing those classes? Where did you find it?
Looks like you want to use Google’s translate API somehow.