This is a quickstart guide for my "Startup Email Notificaton Program". For those who want to add their own commands, there is a guide explaining all methods here.
Latest Release: You can find and download the latest post of this pogram here at my downlaods page.
Download the latest version of the software from my downloads page, which you can find here.
Unzip the folder, if you need to do this using the command line, there are plenty of great guides out there for diffrent distrubutions.
To send emails, an Oracle package is required and I cannot simply provide their packages with my download, therefore, during this step you will need to download a package this link from Oracle. The video to the right will go through the steps.
Unzip this, locate "activation.jar" as well as "javax.mail.jar" and then place them in the directory of your main project directory (same as main.java).
Install or select Java 8, to change versions (for Ubuntu) use the command "sudo update-alternatives --config java".
Add the sending, recieveing, and password for the email addresses you wich to use in the StartupEmailNotifier class (These will be the first variables listed). Please note, your password sits clear-text within the file, it is your job to ensure propper protections are made for the file.
Compile the program with the command "javac com/company/Main.java com/company/UI.java -cp com/company/activation.jar -cp com/company/javax.mail.jar" (must be run from the project root folder with this specific structure).
From the same location in the terminal run the program by executing the command "java -cp .:com/company/activation.jar.:com/company/javax.mail.jar com.company.Main com/company/UI"
Done! The program with default settings will print out everything it found and then send an email from the provided address.
Downloading Oracle package:
Watch this video to learn the steps to downloading a required email .jar package from Oracle.