From owner-freebsd-java Wed Apr 22 16:48:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA04322 for freebsd-java-outgoing; Wed, 22 Apr 1998 16:48:30 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from helmholtz.salk.edu (helmholtz.salk.edu [198.202.70.34]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA04273; Wed, 22 Apr 1998 23:48:25 GMT (envelope-from bartol@salk.edu) Received: from cole.salk.edu (cole [198.202.70.113]) by helmholtz.salk.edu (8.7.5/8.7.3) with SMTP id QAA10119; Wed, 22 Apr 1998 16:48:14 -0700 (PDT) Date: Wed, 22 Apr 1998 16:47:48 -0700 (PDT) From: Tom Bartol To: Nate Williams cc: freebsd-java@FreeBSD.ORG, java-port@FreeBSD.ORG, ritter@orbisys.com, hasty@rah.star-gate.com Subject: Re: JWS2.0/libawt.so trouble In-Reply-To: <199804222342.RAA07109@mt.sri.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 22 Apr 1998, Nate Williams wrote: > > > 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 I'm heading home on the train now. I'll try this out on my laptop enroute and e-mail you later with the results... Standby... Tom To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message