i am very new to hibernate and i am facing this problem as i read the doucmentation it says that
Create a directory called data in the root of the development directory - this is where HSQL DB will store its data files. Now start the database by running java -classpath lib/hsqldb.jar org.hsqldb.Server in this data directory. You can see it start up and bind to a TCP/IP socket, this is where our application will connect later. If you want to start with a fresh database during this tutorial, shutdown HSQL DB (press CTRL + C in the window), delete all files in the data/ directory, and start HSQL DB again.
Now i have a devlopment directory C:\hproject and i create a 'data' directory in hproject so it is c:/hproject/data now when i run 'java -classpath lib/hsqldb.jar org.hsqldb.Server' in this directory it gives me errors........
C:\hproject\data>java -classpath ../lib/hsqldb.jar org.hsqldb.Server [Server@26e431]: [Thread[main,5,main]]: checkRunning(false) entered [Server@26e431]: [Thread[main,5,main]]: checkRunning(false) exited [Server@26e431]: Startup sequence initiated from main() method [Server@26e431]: Loaded properties from [C:\hproject\data\server.properties] [Server@26e431]: Initiating startup sequence... [Server@26e431]: Server socket opened successfully in 47 ms. java.lang.NoClassDefFoundError at org.hsqldb.persist.Logger.closeLog(Unknown Source) at org.hsqldb.Database.reopen(Unknown Source) at org.hsqldb.Database.open(Unknown Source) at org.hsqldb.DatabaseManager.getDatabase(Unknown Source) at org.hsqldb.DatabaseManager.getDatabase(Unknown Source) at org.hsqldb.Server.openDatabases(Unknown Source) at org.hsqldb.Server.run(Unknown Source) at org.hsqldb.Server.access$000(Unknown Source) at org.hsqldb.Server$ServerThread.run(Unknown Source)
this says that Loaded properties from server.properties and i never been asked to have a file called server.properties here so it is created or what is the problem please help........thansk pushnpop
|