Long story short, I got up to reading about how to send emails in java and tried to put in:
And, I got a great error telling me that it didn't exist.
Being on a public school's computer, I couldn't download the javamail package there, so I had to do it at home. After that, I realized id have to download java sdk6 onto my flash drive, and configure it all to run from my flash drive.
But here is where I run into a problem: installing the JavaMail package.
Here are the instructions presented:
Windows ------- 1. Unzip the javamail-1_4_1.zip archive. (you may have already done this) 2. Set your CLASSPATH to include the "mail.jar" file obtained from the download, as well as the current directory. Assuming you unzipped javamail-1_4_1.zip in c:\download the following would work: set CLASSPATH=%CLASSPATH%;c:\download\javamail-1.4.1\mail.jar;. Also include the "activation.jar" file that you obtained from downloading the JavaBeans Activation Framework, in your CLASSPATH. set CLASSPATH=%CLASSPATH%;c:\download\activation\activation.jar 3. Go to the demo directory 4. Compile any demo using your java compiler. For example: javac msgshow.java 5. Run the demo. The '-' option lists the required and optional command-line options to successfully run any demo. For example: java msgshow - lists the available options. And java msgshow -T imap -H <mailserver> -U <username> -P <passwd> -f INBOX 5 uses the IMAP protocol to display message number 5 from your INBOX.
I have unzipped the JAF (Which I thought was suppose to come standard in SDK6 now days anyways) but am not a little ... mm... confused as to what to do.
Assuming you unzipped javamail-1_4_1.zip in c:\download the following would work: set CLASSPATH=%CLASSPATH%;c:\download\javamail-1.4.1\mail.jar;.
I have unzipped javamail-1_4_1.zip into g:\ and have all of the contents of the folders, but have no idea as to what it means to set the classpath.
When installing java on my flashdrive, i was instructed to create a .bat file that contains the following to allow java to run off of it:
So, my question basically comes down to: How the hell can I install JavaMail without tearing my hair out? I am good at java programming, but have no idea what these instructions are telling me.
I realize you all want a sample of my code to see how well I am doing so far, but it is unfortunately at school and is not relative to what I need help with.
Anyways, its like- 600 lines right now (Which i know is short by your guys's standards heh)
Any help would be appreciated, thanks in advanced!