<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>OpenText Analytics Database 26.2.x – JDBC client driver</title>
    <link>/en/connecting-to/client-libraries/client-drivers/install-config/jdbc/</link>
    <description>Recent content in JDBC client driver on OpenText Analytics Database 26.2.x</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/connecting-to/client-libraries/client-drivers/install-config/jdbc/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Connecting-To: Installing the JDBC client driver</title>
      <link>/en/connecting-to/client-libraries/client-drivers/install-config/jdbc/installing-jdbc/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/client-libraries/client-drivers/install-config/jdbc/installing-jdbc/</guid>
      <description>
        
        
        &lt;p&gt;The JDBC client driver conforms to JDK 5 specifications. &lt;a href=&#34;https://www.vertica.com/download/vertica/client-drivers/&#34;&gt;Download the JDBC client driver&lt;/a&gt; according to your environment and requirements. If you need a FIPS-compliant driver, see &lt;a href=&#34;../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/fips/installing-fips-client-driver-jdbc/#&#34;&gt;Installing the FIPS client driver for JDBC&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Installing OpenText™ Analytics Database from the rpm automatically installs the JDBC client driver. To use the JDBC client driver, you just need to add the OpenText™ Analytics Database JDBC &lt;code&gt;.jar&lt;/code&gt; to your &lt;a href=&#34;../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/jdbc/modifying-java-classpath/&#34;&gt; CLASSPATH &lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To manually install the JDBC client driver:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;https://www.vertica.com/download/vertica/client-drivers/&#34;&gt;Download&lt;/a&gt; the version of the JDBC client driver from the Client Drivers downloads page &lt;a href=&#34;../../../../../../en/connecting-to/client-libraries/client-driver-and-server-version-compatibility/&#34;&gt;compatible&lt;/a&gt; with your version of the database.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Copy the &lt;code&gt;.jar&lt;/code&gt; file to a directory in your Java CLASSPATH on every client system with which you want to access the database. You can either:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Copy the &lt;code&gt;.jar&lt;/code&gt; file to its own directory (such as 
&lt;code&gt;/opt/vertica/java/lib&lt;/code&gt;) and then add that directory to your CLASSPATH (recommended). See &lt;a href=&#34;../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/jdbc/modifying-java-classpath/#&#34;&gt;Modifying the Java CLASSPATH&lt;/a&gt; for details.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Copy the &lt;code&gt;.jar&lt;/code&gt; file to directory that is already in your CLASSPATH (for example, a directory where you have placed other &lt;code&gt;.jar&lt;/code&gt; files on which your application depends).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Copy the &lt;code&gt;.jar&lt;/code&gt; file to the system-wide Java Extensions directory. The exact location differs between operating systems. Some examples include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Windows: &lt;code&gt;C:\Program Files\Java\jrex.x.x_x\lib\ext\&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Mac OS: &lt;code&gt;/Library/Java/Extensions&lt;/code&gt; or &lt;code&gt;/Users/username/Library/Java/Extensions&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

&lt;pre&gt;&lt;code&gt;JDBC driver system logs are saved to a separate file for every connection. To log the system output to the console instead, set the following in your client application:

DriverManager.setLogWriter(new PrintWriter(System.out));
&lt;/code&gt;&lt;/pre&gt;


&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../../../en/connecting-to/client-libraries/accessing/java/creating-and-configuring-connection/&#34;&gt;Create a connection&lt;/a&gt; to test your configuration.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

      </description>
    </item>
    
    <item>
      <title>Connecting-To: Modifying the Java CLASSPATH</title>
      <link>/en/connecting-to/client-libraries/client-drivers/install-config/jdbc/modifying-java-classpath/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/client-libraries/client-drivers/install-config/jdbc/modifying-java-classpath/</guid>
      <description>
        
        
        &lt;p&gt;The CLASSPATH environment variable contains a list of directories where the Java runtime looks for library class files. For your Java client code to access OpenText™ Analytics Database, you must add to the CLASSPATH the directory containing the JDBC &lt;code&gt;.jar&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&#34;using-symbolic-links-for-the-classpath&#34;&gt;Using symbolic links for the CLASSPATH&lt;/h2&gt;
&lt;p&gt;You can optionally add to the CLASSPATH a symbolic link &lt;code&gt;vertica-jdbc-x.x.x.jar&lt;/code&gt; (where x.x.x is a version number) that points to the JDBC library &lt;code&gt;.jar&lt;/code&gt; file, rather than the &lt;code&gt;.jar&lt;/code&gt; file itself.&lt;/p&gt;
&lt;p&gt;Using the symbolic link ensures that any updates to the JDBC library &lt;code&gt;.jar&lt;/code&gt; file (which will use a different filename) will not invalidate your CLASSPATH setting, since the symbolic link&#39;s filename will remain the same. You just need to update the symbolic link to point at the new &lt;code&gt;.jar&lt;/code&gt; file.&lt;/p&gt;
&lt;h2 id=&#34;linux-and-os-x&#34;&gt;Linux and OS X&lt;/h2&gt;
&lt;p&gt;The following examples use a POSIX-compliant shell.&lt;/p&gt;
&lt;p&gt;To set the CLASSPATH for the current session:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ export CLASSPATH=$CLASSPATH:/opt/vertica/java/lib/vertica-jdbc-x.x.x.jar
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To set the CLASSPATH for every session, add the following to your start-up file (such as &lt;code&gt;~/.profile&lt;/code&gt; or &lt;code&gt;/etc/profile&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ export CLASSPATH=$CLASSPATH:/opt/vertica/java/lib/vertica-jdbc-x.x.x.jar
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;windows&#34;&gt;Windows&lt;/h2&gt;
&lt;p&gt;Provide the class paths to the &lt;code&gt;.jar&lt;/code&gt;, &lt;code&gt;.zip&lt;/code&gt;, or &lt;code&gt;.class&lt;/code&gt; files.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;C:&amp;gt; SET CLASSPATH=classpath1;classpath2...
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;C:&amp;gt; SET CLASSPATH=C:\java\MyClasses\vertica-jdbc-x.x.x.jar
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;As with the Linux/UNIX settings, this setting only lasts for the current session. To set the CLASSPATH permanently, set an environment variable:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;On the Windows Control Panel, click &lt;strong&gt;System&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;strong&gt;Advanced&lt;/strong&gt; or &lt;strong&gt;Advanced Systems Settings&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click &lt;strong&gt;Environment Variables&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Under User variables, click &lt;strong&gt;New&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the Variable name box, type &lt;code&gt;CLASSPATH&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the Variable value box, type the path to the JDBC &lt;code&gt;.jar&lt;/code&gt; file on your system (for example, 
&lt;code&gt;C:\Program Files (x86)\Vertica\JDBC\vertica-jdbc-x.x.x.jar&lt;/code&gt;)&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;specifying-the-library-directory-in-the-java-command&#34;&gt;Specifying the library directory in the Java command&lt;/h2&gt;
&lt;p&gt;Another, OS-agnostic way to instruct the Java runtime where to find the JDBC driver is to explicitly add the directory containing the &lt;code&gt;.jar&lt;/code&gt; file to the Java command line using either the &lt;code&gt;-cp&lt;/code&gt; or &lt;code&gt;-classpath&lt;/code&gt; argument. For example, you can start your client application with:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;java -classpath /opt/vertica/java/lib/vertica-jdbc-x.x.x.jar myapplication.class
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Your Java IDE may also let you add directories to your CLASSPATH, or import the JDBC driver into your project. See your IDE documentation for details.&lt;/p&gt;

      </description>
    </item>
    
  </channel>
</rss>
