IBM Support

Amazon Redshift 1.0 driver throws Java class definition not found error org.antlr.v4.runtime.CharStream

Troubleshooting


Problem

Amazon provides a download page for the Amazon Redshift 1.0 driver, which includes two download links.

One link will include an Amazon SDK while the other does not. 

As of version 1.2.50, the Amazon JDBC driver requires the antlr JAR which is part of the Amazon SDK.

Symptom

Connections to Amazon Redshift will throw an exception.

java.lang.NoClassDefFoundError: org.antlr.v4.runtime.CharStream
    at com.amazon.redshift.dataengine.PGEscaper.apply(Unknown Source)
    at com.amazon.redshift.dataengine.PGDataEngine.prepareCatalogFunction(Unknown Source)
    at com.amazon.redshift.dataengine.PGDataEngine.makeNewMetadataSource(Unknown Source)

Document Location

Worldwide

[{"Line of Business":{"code":"LOB76","label":"Data Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSTSF6","label":"IBM Cognos Analytics"},"ARM Category":[{"code":"a8m50000000Cl6nAAC","label":"Installation and Configuration-\u003EData Sources"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"},{"Product":{"code":"SS6G84","label":"IBM Cognos Analytics on Cloud"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}},{"Product":{"code":"SSLKT6","label":"IBM Maximo Asset Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
14 January 2026

UID

ibm16436753