Nishani,
You'll need to register the driver. There are two ways to do this:
- auto register the driver by adding it to the java.sql.Driver file in the
resources directory (see
phoenix/phoenix-core/src/main/resources/java.sql.Driver).
- explicitly add a Class.forName("org.apache.phoenix.jdbc.PhoenixDriver")
call in your main method (or any other place that gets called during
initialization before you try to open a connection.

Thanks,
James

On Tue, Jul 21, 2015 at 7:32 AM, Ayola Jayamaha <[email protected]>
wrote:

> Hi,
>
> I'm  getting an SQL Exception[1] when I'm adding the classpath[2]. I'm
> currently working on the phoenix 4.5.0-SNAPSHOT. What suitable version?
>
> Regards,
> Nishani
>
>
>
>
> [1] java.sql.SQLException: No suitable driver found for
> jdbc:phoenix:localhost:2181
> [2] -cp "phoenix-assembly/target/phoenix-4.5.0-SNAPSHOT-client.jar"
> --
> Best Regards,
> Nishani Jayamaha
> http://ayolajayamaha.blogspot.com/
>

Reply via email to