Help us improve the AWS re:Post Knowledge Center by sharing your feedback in a brief survey. Your input can influence how we create and update our content to better support your AWS journey.
Athena JDBC 报驱动程序未找到异常!
0
【以下的问题经过翻译处理】 驱动版本:2.0.35。我从Amazon链接下载(其中一个包含AWS SDK)。
报错:Exception in thread "main" java.lang.RuntimeException: java.sql.SQLException: No suitable driver found for jdbc:awsathena://AwsRegion=us-east-1; at org.example.AthenaQueryRun.init(AthenaQueryRun.java:21) at org.example.AthenaQueryRun.main(AthenaQueryRun.java:11) Caused by: java.sql.SQLException: No suitable driver found for jdbc:awsathena://AwsRegion=us-east-1; at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:702) at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:189) at org.example.AthenaConnection.init(AthenaConnection.java:35) at org.example.AthenaQueryRun.init(AthenaQueryRun.java:17) ... 1 more