title: java 1.7 compatibility with jdbc driver
body: <p>I am new user with java and finally got my code to work and tried transporting it to a remote machine as a jar to run and started getting the following error:</p>
  
  <pre><code>com.microsoft.sqlserver.jdbc.SQLServerConnection &lt;init&gt; SEVERE: Java Runtime Environment 
  (JRE) version 1.8 is not supported by this driver. Use the sqljdbc4.jar class library, 
  which provides support for JDBC 4.0.java.lang.UnsupportedOperationException: 
  Java Runtime Environment (JRE) version 1.8 is not supported by this driver. Use 
   the sqljdbc4.jar class library, which provides support for JDBC 4.0.
      at com.microsoft.sqlserver.jdbc.SQLServerConnection.&lt;init&gt;
      (SQLServerConn
  </code></pre>
  
  <p>I updated the driver in the build path and still does not work. It runs fine on my desktop so not sure what the issue is. Please advise as to what is the best approach here.</p>
  
  <p>EDIT:</p>
  
  <p>The snapshot I posted above shows 1.8 but i have tried it on  several 1.7 machine versions.</p>
  
  <p><img src="https://i.stack.imgur.com/dZbTC.png" alt="cJYJe.png"></p>
  
  <p>and also connection code</p>
  
  <pre><code>    String dataConnectionUrl = "jdbc:sqlserver://192.xxx.x.xxx:1433;" +
               "databaseName=clientsDB;user=me;password=notyou";
  </code></pre>