[
https://issues.apache.org/jira/browse/DERBY-7115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17338581#comment-17338581
]
Hiran Chaudhuri commented on DERBY-7115:
----------------------------------------
Just for completion: I was wondering why the AutoloadedDriver was not loaded on
my system. When loading it manually I received an error message that the class
was compiled by a more recent JDK. Switching from JDK8 to JDK11 already helped
- but this error was not visible from the autoloader.
With this in mind, the tutorial should state to use a recent enough JDK and may
drop the need to load the driver manually (Class.forName(...)).
> Outdated documentation 'Getting Started'
> ----------------------------------------
>
> Key: DERBY-7115
> URL: https://issues.apache.org/jira/browse/DERBY-7115
> Project: Derby
> Issue Type: Bug
> Components: Documentation
> Affects Versions: 10.15.2.0
> Reporter: Hiran Chaudhuri
> Priority: Minor
>
> I just tried to start a new project using the Derby embedded database. For my
> first steps I followed
> [https://db.apache.org/derby/docs/10.15/getstart/getstartderby.pdf.]
> According to the guide on page 31, I need to load
> String driver = "org.apache.derby.jdbc.EmbeddedDriver";
> although that class cannot be found on the classpath - and this despite I
> configured maven with
> {{ <dependency>}}
> {{ <groupId>org.apache.derby</groupId>}}
> {{ <artifactId>derby</artifactId>}}
> {{ <version>10.15.2.0</version>}}
> {{ </dependency>}}
> When looking at derby-10.15.2.0.jar I find the file
> /META-INF.services/java.sql.Driver, and the content is
> {{org.apache.derby.iapi.jdbc.AutoloadedDriver}}
> Should that not be the driver name to be loaded for the tutorial? If not,
> where is the missing class?
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)