I have looked through several tutorials (and my Java manuals) and I am totally confused as to whether it is better to set the classpath variable for mail.jar (JavaMail api) or just place the mail.jar file in my EXT directory in jdk1.7.0. Setting it directly in the EXT makes sense to me because compilation would seem easier.
This is where most tutorials (using that approach) said it belongs --- C:\Program Files\Java\jdk1.7.0_07\jre\lib\ext
One even states "Note that in Windows, to be safe, you should install it in both the JRE and JDK lib/ext directories."
Would I copy mail.jar into the ext directory and the jar files in the lib directory (the lib directory in javamail1-4-7) or where would I put the 6 jar files in that directory relating to my jdk1.7.0_07 directory structure (dsn.jar, gimap.jar, imap.jar, mailapi.jar, pop3.jar, and smtp.jar)?
And with jdk1.7.0_07 do I still need to add the JavaBeans Activation Framework additionally? (I am under the impression that I would not have to)
I have found these two posts on your site:
Restriction error on JavaMail library
but neither really cleared this question up for me
Thanks in advance for any thoughts, advice, and help.....