Emmanuel Cecchet <[EMAIL PROTECTED]> writes:
> 
> Hi Mihai,
> 
> > mihai <at> mihaico:~$ /usr/local/sequoia/bin/isql.sh
> > The properties files is missing an essential property: lax.main.class. 
> > Please make sure it exists in the properties file: iSQL-Viewer.lax
> > Unable to locate the application's 'main' class. The class 'null' must 
> > be public and have a 'public static void null(String[])' method. (LAX)
> Did you install Sequoia using the graphical installer or a binary 
> distribution?
> Could you post the content of your isql.sh file?
> 
> Thanks for your interest in Sequoia,
> Emmanuel

Same error as original poster here.  It appears that the application has two
subdirectories (one for Windows and one for Unix).  Copying the iSQL-Viewer.lax
file for the appropriate type (Unix in my case) up one directory seems to get
past this initial error.  However, the application then still fails to start
with the following output:

$ ./isql.sh 
Detecting plugins...
HistoryManager::saveCurrent($INSTALL_PATH/3rdparty/iSQL/.iSQL-Viewer/history/
autoload.history)
Exception::($INSTALL_PATH/3rdparty/iSQL/.iSQL-Viewer/history/autoload.history
(No such file or directory))
Runtime Exception::(null)

Contents of isql.sh (from sequoia-2.10.9-bin.tar.gz) [some lines wrapped due to
gmane 80 character limit]:

$ cat isql.sh 
#!/bin/sh

# SEQUOIA_HOME definition
if [ -z "$SEQUOIA_HOME" ] ; then 
  echo "Cannot find Sequoia home directory. Please set the SEQUOIA_HOME
environment variable."
  exit 1
fi

# JAVA setup.
#
# We try to use first the java JVM in JAVA_HOME and if not found,
# we use the one found in the path.
# You can specify additional options to give to the Java JVM in the
# JVM_OPTIONS environment variable.
if [ -z "$JAVA_HOME" ]
then
    JAVA=`which java`
    if [ ! -x "$JAVA" ]; then
      echo "Cannot find java command. Please set the JAVA_HOME environment
variable."
      exit 1
    fi
else
    JAVA=$JAVA_HOME/bin/java
fi
export JAVA

[ -z "$HSQL_HOME" ] && HSQL_HOME=$SEQUOIA_HOME/3rdparty/hsqldb
  
[ -z "$ISQL_HOME" ] && ISQL_HOME=$SEQUOIA_HOME/3rdparty/iSQL
  
[ -z "$SEQUOIA_DEFAULT_JVMDEBUG_PORT" ] && SEQUOIA_DEFAULT_JVMDEBUG_PORT=52002
  

# IPv6 is untested
JVM_OPTIONS="-Djava.net.preferIPv4Stack=true ${JVM_OPTIONS}"

# Environment variables for OptimizeIt
# export LD_LIBRARY_PATH=/home/emmanuel/OptimizeitEntSuite60/lib/:
# $LD_LIBRARY_PATH
# export PATH=/home/emmanuel/OptimizeitEntSuite60/lib/:$PATH

# uncomment to debug
# JVM_OPTIONS="${JVM_OPTIONS} -enableassertions -Xdebug -Xnoagent
-Djava.compiler=none
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,
address=$SEQUOIA_DEFAULT_JVMDEBUG_PORT"
  
# Set the classpath.
unset CLASSPATH
CLASSPATH=:$SEQUOIA_HOME/drivers/sequoia-driver.jar:$ISQL_HOME/lib/bsf.jar:
$ISQL_HOME/lib/isql-core.jar:$ISQL_HOME/lib/jpython1.1.jar:$ISQL_HOME/lib/
lax.jar:$ISQL_HOME/lib/mozilla-rhino:$HSQL_HOME/lib/hsqldb.jar:$CLASSPATH_XTRA


# Change directory if needed
cd $ISQL_HOME

# Java Command.
$JAVA -classpath $CLASSPATH  $JVM_OPTIONS com.zerog.lax.LAX iSQL-Viewer.lax  
"$@"

-- 
Jamin W. Collins

_______________________________________________
Sequoia mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/sequoia

Reply via email to