A popular method to run java application is to call the JVM from a
shell script. Typically when I want distribute
a Java program. I set up the `Makefile' run a script to
*automagically* generate this dum-diddy-dum-dum-dum
stub script which is basically this:
#!/bin/sh
# Java Stub Generator
...
OutputStubFile=run-Foobar
ExtraClassPaths=swingall.jar:
...
cat <<- XEOF > ${OutputStubFile}
#!/bin/sh
if [ "x\$CLASSPATH" = "x" ]; then
CLASSPATH=\${ExtraClassPaths}:\${CLASSPATH}
export CLASSPATH
else
unset CLASSPATH
fi
java foo.bar.Application
XEOF
chmod 755 ${OutputStubFile}
I have not bother downloading the prerelease yet.
For JDK1.2 I understand you do have set the CLASSPATH
(provided you upgrade to a new version of swing or JMF of course ) ?
Or is better to make sure that `unset CLASSPATH' ?
Can anyone confirm the correctness of the above ?
Of course there is no such thing as Bourne on Windows/NT boxes what
is best JDK 1.2 class path for these systems.
Cheers
Peter
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]