There is a problem with jtreg usage under MKS. By default, comparison case statements in MKS are case-insensitive. This means that -javacoptions is matched with -J* and thus is recognized as java option, added to java command line and causes jtreg to fail:
Unrecognized option: -javacoptions:
Could not create the Java virtual machine.
See
http://www.mkssoftware.com/support/kb/default.asp?article=168
for i in "$@" ; do
IFS=
case $i in
-jdk:* ) jdk="`echo $i | sed -e 's/^-jdk://'`"
jtregOpts=$jtregOpts$nl$i ;;
-J* ) javaOpts=$javaOpts$nl`echo $i | sed -e 's/^-J//'` ;;
* ) jtregOpts=$jtregOpts$nl$i ;;
esac
IFS="$saveIFS"
done
Unrecognized option: -javacoptions:
Could not create the Java virtual machine.
See
http://www.mkssoftware.com/support/kb/default.asp?article=168
for i in "$@" ; do
IFS=
case $i in
-jdk:* ) jdk="`echo $i | sed -e 's/^-jdk://'`"
jtregOpts=$jtregOpts$nl$i ;;
-J* ) javaOpts=$javaOpts$nl`echo $i | sed -e 's/^-J//'` ;;
* ) jtregOpts=$jtregOpts$nl$i ;;
esac
IFS="$saveIFS"
done