Originally, I was able to run my code from command line as such:
java -cp "/var/www/html/tcqa/bin/test_and_control-1.0-SNAPSHOT.jar:/var/www/html/tcqa/bin/postgresql-9.3-1100-jdbc41.jar" Main /var/www/html/tcqa/sql/tc.sql
I needed to add some new functionality and decided to break out the main class and use case to manage which sql statement would get run. I moved my main class out and have not been able to get my code to run from command line. My new command line looks like this:
java -cp ["/home2/smontoya/test_and_control-1.0-SNAPSHOT.jar:/var/www/html/tcqa/bin/postgresql-9.3-1100-jdbc41.jar;"] Main email /var/www/html/tcqa/sql/email.sql
Obviously I want to test this before moving it into production mode. My code structure looks like this:
main
|-->java
|--> email
| |__ EmailFlag
| |__ EmailRow
|--> tc
| |__ Analytics
| |__ Row
| |__ TestAndControl
| |__ Utils
|--> Main