[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: which java packages to install?



Hi there!

Still trying to start that java searchengine provided with
my perl-cd-bookshelf:-(

There were suggestions of the script beeing buggy, but i don't
think so. Another idea was setting $CLASSPATH (which was not
set), but 
 a) Setting it to /usr/share/kaffe (Klasses.jar, comm.jar ..) didn't help
 b) Kaffe docu states it does not need any envvars to run

Any suggestions? (errors below, script attached)
Thanx Bernd

bernd@zeitfresser:/cdrom$ ./run_me.sh 
./run_me.sh: [: argument expected
java.lang.NoClassDefFoundError: /
	at java.lang.Throwable.<init>(Throwable.java:38)
	at java.lang.Error.<init>(Error.java:21)
	at java.lang.LinkageError.<init>(LinkageError.java:21)
	at java.lang.NoClassDefFoundError.<init>(NoClassDefFoundError.java:21)

 


-- 


--------------------------------------------------------
                 bernd.worsch@web.de
-------------------------------------email-preferred----


#!/bin/sh
# run_me.sh
#    runs Innotech's search server with a configuration file in
#    /tmp/netresults
# run_me.sh tempdir
#    will run the server with a configuration file in
#    tempdir/netresults

# Find the Java interpreter
if [ $JRE"X" = "X" ]
then
    if [ \( ! `which jre`"X" = "X" \) -a \( ! -d `which jre` \) -a -x `which jre` ]
    then
	JRE=`which jre`
    elif [ \( ! `which java`"X" = "X" \) -a \( ! -d `which java` \) -a -x `which java` ]
    then
	JRE=`which java`
    else
	echo "There is no Java interpreter in your executable search path.  Please"
	echo "make sure you have an interpreter (such as \"jre\" or \"java\") installed."
	echo "Then make sure that the executable is in your path, or set the JRE"
	echo "environment variable to point to it."
	exit 1
    fi
elif [ ! -x $JRE ]
then
    echo "You have set the JRE environment variable, but the file it points to"
    echo "is not an executable.  Please unset the variable, or verify that it"
    echo "points to your executable Java interpreter."
    exit 1
fi

if [ ! \( $1"X" = "X" -o -d "$1" \) ]
then
    echo "Usage:"
    echo "$0"
    echo "   will run the server with a configuration file in"
    echo "   /tmp/netresults"
    echo "$0 tempdir"
    echo "   will run the server with a configuration file in"
    echo "   tempdir/netresults"
    exit 2
fi

# The first parameter, if specified, should be the temporary
# directory.

if [ $1"X" = "X" ]
then
    tempdir="/tmp"
else
    tempdir=$1
fi

# If the NetResults directory has been created, we check for the
# HTTP-based configuration file.

if [ -d $tempdir"/netresults" ]
then

    # If the HTTP-based configuration file doesn't exist, create it.

    if [ ! -f $tempdir"/netresults/http-nr.cfg" -a -f $tempdir"/netresults/Server.cfg" ]
    then
	sed "s/^\(NO_RESULT_URL.*STRING \)[^ ]*/\1http:\/\/localhost:6016\/noResults.html/; s/^\(TEMP_HTML_URL.*STRING \)[^ ]*/\1http:\/\/localhost:6016\//" < $tempdir"/netresults/Server.cfg" > $tempdir"/netresults/http-nr.cfg"

	# Run the server with the HTTP config file.

	cd netresults
	$JRE -cp . -mx16m -ms8m itm.nr.serve.NRServer +prop=$tempdir"/netresults/http-nr.cfg"

    else
	# Run the server with the default file.

	cd netresults
	$JRE -cp . -mx16m -ms8m itm.nr.serve.NRServer	
    fi

else
    # Run the server with the default file.

    cd netresults
    $JRE -cp . -mx16m -ms8m itm.nr.serve.NRServer
fi


Reply to: