|
From: <tri...@tr...> - 2003-06-28 22:25:31
|
Forgot to attach the file - here it is. > John, > > > I'm trying to play with spring but not having much success. > > > > I have Tomcat 4.1.24 installed and running on Mac OS X 10.2.6 running > > JVM 1.4.1_01-39. > > > > I wanted to try the petclinic demo so I I tried to start up hsqldb: > > > > [mangora:petclinic/db/hsqldb] jvandyk% ls > > dropDB.txt petclinic.data > > petclinic_tomcat_hsql.xml > > initDB.txt petclinic.properties server.bat > > manager.bat petclinic.script > > server.properties > > [mangora:petclinic/db/hsqldb] jvandyk% cat server.bat > > java -classpath ..\..\lib\hsqldb.jar org.hsqldb.Server -database petclinic > > [mangora:petclinic/db/hsqldb] jvandyk% server.bat > > server.bat: Command not found. > > [mangora:petclinic/db/hsqldb] jvandyk% ./server.bat > > Exception in thread "main" java.lang.NoClassDefFoundError: > org/hsqldb/Server > > > > org.hsqldb.Server seems to be missing? > > The server.bat file is for use on Windows systems. I have created a > server.sh > script that works on Linux/UNIX systems, so it should work on Mac OS X as > well. > > Save the attached 'server.sh' file in the same directory where 'server.bat' > is. > Open a command line shell and change to this directory. Enter > > chmod +x server.sh > > and then > > ./server.sh > > You should see the following message: > > [trisberg@localhost hsqldb]$ ./server.sh > Opening database: petclinic > HSQLDB server 1.7.1 is running > Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly > Sat Jun 28 18:10:16 EDT 2003 Listening for connections ... > > Let me know if this does not work. I'll add this file to the next release. > > Thomas > > |