"Cannot find derbynet.jar on the classpath" despite derbynet.jar being on the classpath

Answered

I'd like to start a Derby server using IntelliJ. I import derbynet (together w/ derby and derbyclient artifacts) via Maven. Here's my run configuration:

Dependencies:

 

 

Everything seems in place. But when I run, I get the error: "Cannot find derbynet.jar on the classpath".

Here's the classpath information:

/home/ramin/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/201.6668.121/jbr/bin/java -javaagent:/home/ramin/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/201.6668.121/lib/idea_rt.jar=45383:/home/ramin/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/201.6668.121/bin -Dfile.encoding=UTF-8 -classpath /home/ramin/code/edu/derbyex/target/classes:/home/ramin/.m2/repository/org/apache/derby/derby/10.14.2.0/derby-10.14.2.0.jar:/home/ramin/.m2/repository/org/apache/derby/derbynet/10.14.2.0/derbynet-10.14.2.0.jar:/home/ramin/.m2/repository/org/apache/derby/derbyclient/10.14.2.0/derbyclient-10.14.2.0.jar:/home/ramin/.m2/repository/org/apache/derby/derbytools/10.14.2.0/derbytools-10.14.2.0.jar org.apache.derby.drda.NetworkServerControl start -h

Could someone please point out to me what's causing this?

 

0
1 comment

OK, I now find out that this has nothing to do with my run configuration. When you try to start a Derby server by running NetworkServerControl class using Maven, you get this error. It's an issue reported years ago and apparently unresolved to this day. A workaround is to add "-noSecurityManager" as a program argument.

0

Please sign in to leave a comment.