I am starting the H2 Server Tool from Command Line as:
java -cp h2*.jar org.h2.tools.Server
And I am trying to use a user defined class like the Function
one shown in the User-Defined Functions and Stored Procedures section.
I have made several attempts with my user function:
- compiling it to a
Function.class
file - compiling it to a
acme/Function.class
file - packaging it in a
acme.jar
file - packaging it in a
h2acme.jar
file
And tried several ways of including it to the classpath, with no luck.
For example:
[user@host h2]$ java -cp ./h2*.jar:./acme.jar org.h2.tools.Server -tcp -web
Error: Could not find or load main class org.h2.tools.Server
I have read this related issue and followed the indications there.
But it does not seem to work.