How to start H2 database in server mode. I need to start it from my application.I tried the following code:
server = Server.createTcpServer().start();
I was getting this error when trying to start H2.
See also http://h2database.com/javadoc/org/h2/tools/Server.html
Exception in thread "main" org.h2.jdbc.JdbcSQLException: Feature not supported: "-~webAllowOthers" [50100-197]
So I followed these steps:
java -cp bin/h2-1.4.197.jar org.h2.tools.Server -web -webAllowOthers -tcp -tcpAllowOthers -baseDir /home/manoj/dev/h2/h2db_6.0nohup java -cp bin/h2-1.4.197.jar org.h2.tools.Server -web -webAllowOthers -tcp -tcpAllowOthers -baseDir /home/manoj/dev/h2/h2db_6.0/ &