Hello,
I am trying to get the Mckoi database working per Just
Java 2 chapter 27 and cannot get it going. In fact none of it is working the way the book says it should. I think this may be due to the fact that the database is on a different version as is Java (in the book they are at mckoi0.89b and java 1.2 I am using mckoi0.93 and java 1.4)
The book says there are 3 ways of making the libraries visible to the compiler I have added it to the classpath making it:
PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.4\bin
SET CLASSPATH=.;c:\CoreJavaBook;c:\working;c:/mckoi0.93
SET PATH=c:\jdk1.4\bin;%PATH%
doskey /insert /keysize:64
Yet in the command line I still need to use commands like instead of the books neat(in c:\mkoi0.93\demo\simple):
java SimpleApplicationDemo
java -cp c:/mckoi0.93/mckoidb.jar;. SimpleApplicationDemo
It at least works with the following but getting the SQL query tool is not working at all. When I type per the books (in the same dir as above) java com.mckoi.tools.JDBCQueryTool -url "jdbc:mckoi:local:/ExampleDB.conf" -u user -p "pass1212"
I get the error message Exception in
thread "main" java.lang.NoClass.DefFoundError: com/mckoi/tools/JDBCQueryTool
I've tried adding "-cp mckoidb.jar" but it makes no difference.
I've tried poring over the installation instructions but the only thing I can find that I have not done is some stuff for building the binaries with:
mkdir lib
javac -classpath src;lib;gnu-regexp-1.1.4.jar -d lib/ \
src/com/mckoi/runtime/McKoiDBMain.java \
src/com/mckoi/JDBCDriver.java \
src/com/mckoi/database/jdbcserver/DefaultLocalBootable.java \
src/com/mckoi/database/interpret/*.java \
src/com/mckoi/database/control/*.java \
src/com/mckoi/tools/*.java \
src/com/mckoi/database/regexbridge/GNURegex.java
but this just causes screenfuls of errors. Any ideas? Please help I've been stuck way to long on this.