The comments in the following link were the issue I had.
https://blogs.msdn.microsoft.com/psssql/2015/01/09/jdbc-this-driver-is-not-configured-for-integrated-authentication/#comment-3042
When you install the JDBC driver for the first time you have to copy this file
/Program Files/Microsoft JDBC Driver 4.0 for SQL Serversqljdbc_4.0/enu/auth/x64/sqljdbc_auth.dll
to the Java Run Time Environment bin folder
C:Program FilesJavajre7bin
then later if you upgrade your java to a higher version, you have to copy the file again and so on.