Here's what i did:
+ right clicked on the Libraries node, chose Properties
+ Removed the broken library references
+ Ensured/Added the derbyclient.jar to this list
+ Chose Run File/Project on DerbyLoginDB.java
It gave me:
Error on url jdbc:derby://localhost:21527/sample
ERROR: SQLException: Connection authorization failure occurred. Reason: userid invalid.
org.apache.derby.client.am.SqlException: Connection authorization failure occurred. Reason: userid invalid.
I have then modified the line:
String url = "jdbc:derby://localhost:" + port + "/sample";
to:
String url = "jdbc:derby://localhost:" + port + "/sample;user=dbadmin;password=dbadmin";
Reran the project, it worked fine!
HTH,
Sakthi