Date: Wed, 22 Apr 1998 17:42:14 -0600 From: Nate Williams <nate@mt.sri.com> To: Tom Bartol <bartol@salk.edu> Cc: Nate Williams <nate@mt.sri.com>, freebsd-java@FreeBSD.ORG, java-port@FreeBSD.ORG, ritter@orbisys.com, hasty@rah.star-gate.com Subject: Re: JWS2.0/libawt.so trouble Message-ID: <199804222342.RAA07109@mt.sri.com> In-Reply-To: <Pine.BSF.3.96.980422162307.17252N-100000@cole.salk.edu> References: <199804222322.RAA06888@mt.sri.com> <Pine.BSF.3.96.980422162307.17252N-100000@cole.salk.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
> > Ok, how do you run JWS again? > > I type: > > /usr/local/Java-WorkShop2.0/JWS/intel-S2/bin/jws > > which is not in my path. /usr/local/jdk1.1.5/bin is in my path. Ok. Give me a second to go look at the jws script..... Well, this is at least part of the problem, if not all of it. # Check for java interpreter. # JAVA_VM=${JAVA_VM:-"java"} javaloc="${_SS_JDK_HOME}/bin/${V_ARCH}/${THREADS_FLAG}_threads" if [ -x "${javaloc}/${JAVA_VM}" ] ; then JAVA="${javaloc}/${JAVA_VM}" else echo "`${GETTEXT} 'Error: Cannot find Java VM:'` ${javaloc}/${JAVA_VM}" 1>&2 exit 1 fi It's invoking java *directly*, which is a bad thing since it should be using the script in ${__SS_JDK_HOME}, not in the sub-directory. This script is overly complex. :( In any case, the *easy* fix for this is as follows: # Check for java interpreter. # JAVA_VM=${JAVA_VM:-"java_X"} ^^^^^^ That should do the trick. The other solution would be to move javaloc completely out of the picture, and have it use the *script*, which it's supposed to do. ;( # Check for java interpreter. # JAVA_VM=${JAVA_VM:-"java"} javaloc="${_SS_JDK_HOME}/bin/" ^^^^^^^^^^^^^^^^^^^^ That is the 'portable' solution, but I'm not sure if it'll work. (It should.) Let me know if that helps. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804222342.RAA07109>