[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: files required
From: |
david ROBIN |
Subject: |
Re: files required |
Date: |
Thu, 6 Jan 2000 10:00:36 -0800 (PST) |
--- "Marcus G. Daniels" <address@hidden> wrote:
>
> Change JDKPATH to jdkdir and change
> ${jdkdir}/libexec/Kaffe to
> ${jdkdir}/bin/java.
Hi Marcus,
this is done. it works perfectly under NT with JDK1.2,
but i got an error under windows 98 and JDK 1.2.2(of
course, i set jdkir in the win98 version of the shell
script to "/jdk1.2.2" )
here is the error:
I have no address@hidden/swarm/Agent/jModelSite] $
javaswarm StartSim
Usage: cygpath [-p|--path] (-u|--unix)|(-w|--windows)
filename
-u|--unix print Unix form of filename
-w|--windows print Windows form of filename
-p|--path filename argument is a path
/SWARM-~1.1/BIN/javaswarm: /Swarm-2.0.1/bin: not found
Usage: cygpath [-p|--path] (-u|--unix)|(-w|--windows)
filename
-u|--unix print Unix form of filename
-w|--windows print Windows form of filename
-p|--path filename argument is a path
Usage: cygpath [-p|--path] (-u|--unix)|(-w|--windows)
filename
-u|--unix print Unix form of filename
-w|--windows print Windows form of filename
-p|--path filename argument is a path
PK: error 22
/jdk1.2.2/jre/lib/rt.jar: AxT META-INF/_-PK
META-INF/_-PK
K
AxT´uÃn¶META-INF/MANIFEST.MFManifest-Version:: not
found
ersion:: not found
Specification-Title:: not found
Specification-Vendor:: not found
/jdk1.2.2/jre/lib/rt.jar: 9: Syntax error: "("
unexpected
Usage: cygpath [-p|--path] (-u|--unix)|(-w|--windows)
filename
-u|--unix print Unix form of filename
-w|--windows print Windows form of filename
-p|--path filename argument is a path
/SWARM-~1.1/BIN/javaswarm: /Swarm-2.0.1/bin: not found
/SWARM-~1.1/BIN/javaswarm: 78: Syntax error: newline
unexpected
I have no address@hidden/swarm/Agent/jModelSite] $
Does it comes from win98 or from the JDK1.2.2?
i give you the script (which is exactly the same as
the one which runs perfectly under NT, except for the
value of jdkdir)
#!/bin/sh
swarm_prefix="${SWARMROOT}"
swarm_exec_prefix="${swarm_prefix}"
jdkdir="/jdk1.2.2"
if test yes = yes; then
PATH=${swarm_exec_prefix}/bin:${CYGFS}H-i586-cygwin32/lib/../bin:$PATH
else
PATH=`cat << EOF | sort 2>/dev/null | uniq | tr
'\012' ':'
${swarm_exec_prefix}/lib
${CYGFS}H-i586-cygwin32/lib
${CYGFS}H-i586-cygwin32/lib
${SWARMROOT}/lib
${SWARMROOT}/lib
${SWARMROOT}/lib
EOF
`$PATH
fi
JAVALIBS="${SWARMROOT}/bin:${jdkdir}/jre/bin/java"
_JAVACLASSES="${jdkdir}/jre/lib/rt.jar"
if test yes = yes; then
DOSJAVALIBS=''
for path in `echo $JAVALIBS | tr ':' '\012'`; do
path=`eval echo $path`
DOSJAVALIBS="${DOSJAVALIBS}`cygpath -w
"$path"`;"
done
JAVACLASSES=''
for path in `echo $_JAVACLASSES | tr ':' '\012'`;
do
path=`eval echo $path`
JAVACLASSES="${JAVACLASSES}`cygpath -w
"$path"`;"
done
PS=';'
PD='\'
swarmclassdir=`cygpath -w "${swarm_prefix}/share"`
KAFFELIBRARYPATH=`cygpath -w
"${swarm_exec_prefix}/bin"`${PS}${DOSJAVALIBS}
else
JAVACLASSES=$_JAVACLASSES
PS=:
PD=/
swarmclassdir="${swarm_prefix}/share"
KAFFELIBRARYPATH="${swarm_exec_prefix}/lib${PS}${JAVALIBS}"
fi
JAVAENV=
JAVACMD=${jdkdir}/bin/java
export PATH KAFFELIBRARYPATH
JAVA_CLASSES_INSTALLED_AS=jar
if test x$JAVA_CLASSES_INSTALLED_AS = xjar; then
classpath=".${PS}${swarmclassdir}${PD}swarm${PD}swarm.jar${PS}${JAVACLASSES}${PS}$CLASSPATH"
else
classpath=".${PS}${swarmclassdir}${PS}${JAVACLASSES}${PS}$CLASSPATH"
fi
if test -z "$*"; then
echo "KAFFELIBRARYPATH=\"$KAFFELIBRARYPATH\""
echo "PATH=\"$PATH\""
echo "CLASSPATH=\"$classpath\""
echo "export KAFFELIBRARYPATH PATH CLASSPATH"
elif test -n "$JAVASWARMGDB"; then
(echo "shell rm -f /tmp/.gdbinit.$$";
echo "cd `pwd`"; echo "set args $*" ) >
/tmp/.swarmgdbinit.$$
eval "$JAVAENV CLASSPATH='$classpath'
$JAVASWARMGDB
-command /tmp/.swarmgdbinit.$$ $JAVACMD"
rm -f /tmp/.swarmgdbinit.$$
else
eval "$JAVAENV CLASSPATH='$classpath' $JAVACMD $*"
fi
Thanks in advance
David
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.