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


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:




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/ org.apache.derby.drda.NetworkServerControl start -h

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


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.


Please sign in to leave a comment.