4 # Copyright (C) 2004 Robin Rosenberg.
6 # This program is available under the terms of the GNU Public License.
9 while [ "${1:0:1}" = "-" ]
19 if [ "$OS" = "Windows_NT" ];then sep
=";";else sep
=":";fi
22 if [ ! -f $HOME/.jev
/stdimport
]
24 cat >$HOME/.jev
/stdimport
<<EOF
34 if [ -f $HOME/.jev
/stdclasspath
]
39 done < $HOME/.jev
/stdclasspath
44 tmpf
=$TMP/${class}.java
45 tmpx
="$TMP/${class}.class $TMP/${class}\$*.class"
46 trap "cat $tmpf;rm -f $tmpf $tmpfx" 0
47 cat >$tmpf <$HOME/.jev
/stdimport
59 public static void main(String[] args) throws Throwable
65 javac
-d $TMP -cp "$cp$sep$TMP" $tmpf
66 time java
-cp "$cp$sep$TMP" $class
67 if [ ! -f $TMP/${class}.class
]