How to Pass the Class Path of the JDB Driver into the (HSQLDB) Eclipse

Asked 2 years ago, Updated 2 years ago, 74 views

I study servlets using Eclipse in the book Servlet from the Basics.

In order to pass the class path of the JDB driver through Eclipse,
①Copy hsqldb.jar from hsqldb>lib to myproject>WEB-INF>lib
②In Eclipse,
From Project > Properties > Java Build Path > Library > Add JAR Added hsqldb.jar.

The Java build path also shows the hsqldb icon, but
If you attempt to connect to the database with a Java file with the main function,
Exception in thread "main" java.lang.IllegalStateException: java.lang.ClassNotFoundException: org.hsqldb.jdbsDriver
Caused by:java.lang.ClassNotFoundException: org.hsqldb.jdbsDriver
The error occurs:

If I can't find the class, does it mean that the build pass doesn't pass?
Please let me know if you know the cause.

java sql eclipse

2022-09-30 17:40

1 Answers

I'm sorry.The source code was just incorrect


2022-09-30 17:40

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.