I am learning hibernate by trying tutorial program on hibernate website.
I have reached till hsql start up . I am not able to start hsqldb via command
Code:
mvn exec:java -Dexec.mainClass="org.hsqldb.Server" -Dexec.args="-database.0 file:target/data/tutorial"
I have maven installed and working fine. I have just downloaded a hsqldb and unzipped it under c:\hsqldb, I also modified CLASSPATH Environment variable to it is as follows
.;C:\hsqldb;C:\hsqldb\lib\;C:\Program Files\Java\jdk1.6.0_14\bin
Am i missing something
When i run the commannd from my hibernate tytorial program
Code:
c:\Users\mypc\hibernate-tutorial>mvn exec:java -Dexec.mainClass="org.hsqldb.Server" -Dexec.args="-database.0 file:target/data/tutorial"
I get Error meassage as
C:\Users\mypc\hibernate-hello\hibernate-tutorial>mvn exec:java -Dexec.mainClass="org.hsqldb
.Server" -Dexec.args="-database.0 file:target/data/tutorial"
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'exec'.
[INFO] ------------------------------------------------------------------------
[INFO] Building First hibernate tutorials
[INFO] task-segment: [exec:java]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing exec:java
[INFO] No goals needed for project - skipping
[INFO] [exec:java {execution: default-cli}]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An exception occured while executing the Java class. org.hsqldb.Server
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22 seconds
[INFO] Finished at: Wed Jul 15 15:18:59 IST 2009
[INFO] Final Memory: 5M/10M
[INFO] ------------------------------------------------------------------------