Hi,

I found the problem why 'build jarJaqu' doesn't work sometimes. The
problem is if the directory 'temp' doesn't exist when starting the
build, it is not included in the classpath. So I will change the
build.bat and build.sh files to always create the directories:

build.sh:
#!/bin/sh
if [ -z "$JAVA_HOME" ] ; then
  echo "Error: JAVA_HOME is not defined."
fi
if [ ! -d "temp" ] ; then
  mkdir temp
fi
if [ ! -d "bin" ] ; then
  mkdir bin
fi
if [ ! -f "bin/org/h2/build/Build.class" ] ; then
  javac -sourcepath src/tools -d bin src/tools/org/h2/build/*.java
fi
"$JAVA_HOME/bin/java" -Xmx512m -cp "bin:$JAVA_HOME/lib/tools.jar:temp"
org.h2.build.Build $@


build.bat:
@echo off
if "%JAVA_HOME%"=="" echo Error: JAVA_HOME is not defined.
if not exist temp mkdir temp
if not exist bin mkdir bin
if exist bin/org/h2/build/Build.class goto buildOK
javac -sourcepath src/tools -d bin src/tools/org/h2/build/*.java
:buildOK
"%JAVA_HOME%/bin/java" -Xmx512m -cp
"bin;%JAVA_HOME%/lib/tools.jar;temp" org.h2.build.Build %*

Regards,
Thomas

On Sun, Oct 5, 2008 at 9:43 PM, Thomas Mueller
<[EMAIL PROTECTED]> wrote:
> Hi,
>
>> I tried to build JaQu per the instructions ( which are wrong for unix/
>> OS X as the script is  build.sh  not build)
>
> Thanks, I will document this:
> "For Linux and OS X, use ./build.sh instead of build."
>
>> and got the following exception in response, but guessing that you
>> never did a scratch build of JaQu
>> by itself after a "clean", i did a   build jar   and then the JaQu
>> build worked.
>
> The problem seems to be that the class org.h2.engine.Constants is not
> loaded because it was created just before. I need to fix that, not
> sure how. A workaround is to run 'build jarJaqu' twice.
>
> Regards,
> Thomas
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to