Question

I want to install JavaMail to establish an SMTP connection between two clients (and if you know other ways of establishing that connection, please let me know). I'm using Eclipse IDE to run the project that needs JavaMail.

It appears that 1.4.7 is the latest version. I followed the instructions on the code.google page, but got stuck on one step. I have to copy mail.jar to .../lib/ext, but I don't know where to find the right spot. I found this ubuntuforums thread according to which /usr/lib/jvm/java-6-sun-1.6.0.06 is where I put mail.jar. That is not the case with my Ubuntu. Instead I have a whole series of similar directories:

java-1. ... directories, java-6-openjdk, java-6-openjdk-common, java-6-openjdk-i386, and java-7-openjdk-i386.

and only some of them have /lib/ext.

My question is:

Which directory's /lib/ext should I go to and copy mail.jar?

Was it helpful?

Solution

You need to take a look which Java installation is the default one for your system. So issue a

update-alternatives --config java

Now go to that directory (the one with * shoud be the default) and put the mail.jar into lib/ext. Works for my on my Fedora:-)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top