title: setting Client Info in JDBC for Oracle
body: <p>I have a Java application which needs to be audited (so obviously I need a way in which the app can be identified with the application name). I googled and found that ojdbc14 has the method <code>.setClientInfo</code> which allows registering the application with a customized name, so I am trying to get it work but I get the following error:</p>
  
  <blockquote>
    <p>Exception in thread "main" java.lang.AbstractMethodError:
    oracle.jdbc.driver.T4CConnection.setClientInfo(Ljava/lang/String;Ljava/lang/String;)V</p>
  </blockquote>
  
  <p>I am using ojdbc14 with oracle 10g express. If I do not set the line:</p>
  
  <pre><code>connection.setClientInfo("ApplicationName","Customers");
  </code></pre>
  
  <p>it works pretty well ....and by checking the audit info I can see that oracle gets the application name:OS_program_name=JDBC Thin Client, but I need  a way to change it for a customized name.</p>
  
  <p>By uncommenting that line which is supposed to set the application name it returns the error above.</p>
  
  <p>Per oracle documentation that method is available for a <code>Connection</code> object. Do you have any idea how to solve this issue?</p>