need to tell javac directly where to find mail.jar & activation.jar

I'm writing a webapplication and the environment I will put it on won't have mail.jar or activation.jar

I am thinking of compiling a Bean (MailBean.java) directly through ssh and I want to tell javac where to find the jars I mentioned.

I started by putting them under WEB-INF/lib

problem is I get this error:

java.lang.UnsupportedClassVersionError: bean/MailBean (Unsupported major.minor version 49.0), I guess it means something about versions colliding?

But in this case I had compiled the MailBean.java on my own computer and later uploaded it so I was thinking of using ssh to compile it directly on the webserver environment.

Now comes the questioN: Where do I put my jars and what do I tell the javac command about finding them?

Cheers

[794 byte] By [sectoida] at [2007-10-3 1:19:42]
# 1

java.lang.UnsupportedClassVersionError: bean/MailBean (Unsupported major.minor version 49.0)

This means that you compiled your code with Java 5.0, and you are trying to run it on an earlier version of Java.

Make sure you use the JDK version that matches the JRE version you're going to run your code on.

jesperdja at 2007-7-14 18:16:53 > top of Java-index,Desktop,Runtime Environment...