Re: which java packages to install?
- To: Debian User Mailing List <debian-user@lists.debian.org>
- Subject: Re: which java packages to install?
- From: Bernd Worsch <bernd.worsch@web.de>
- Date: Mon, 2 Oct 2000 10:58:42 +0200
- Message-id: <20001002105842.A15395@zeitfresser.imagica>
- Mail-followup-to: Debian User Mailing List <debian-user@lists.debian.org>
- In-reply-to: <20000928164054.A8314@zeitfresser.imagica>; from bernd.worsch@web.de on Thu, Sep 28, 2000 at 04:40:54PM +0200
- References: <20000928164054.A8314@zeitfresser.imagica>
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: