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.
I'm sorry.The source code was just incorrect
© 2024 OneMinuteCode. All rights reserved.