From owner-freebsd-java Thu Apr 23 01:57:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA01762 for freebsd-java-outgoing; Thu, 23 Apr 1998 01:57:32 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from chico.franken.de (dns.franken.de [193.175.24.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA01744; Thu, 23 Apr 1998 01:56:57 -0700 (PDT) (envelope-from scratchy@yavin.franken.de) Received: by chico.franken.de (Smail3.2 #2) id m0ySHo5-005CIdC; Thu, 23 Apr 1998 10:56:37 +0200 (MET DST) Received: from vulcan.franken.de(194.94.248.10) via SMTP by chico.franken.de, id smtpd001666; Thu Apr 23 10:56:29 1998 Received: from yavin.franken.de (yavin.franken.de [194.94.248.13]) by vulcan.franken.de (8.8.8/8.8.8) with ESMTP id KAA00860; Thu, 23 Apr 1998 10:57:53 +0200 (CEST) (envelope-from scratchy@yavin.franken.de) Received: from yavin.franken.de (localhost.franken.de [127.0.0.1]) by yavin.franken.de (8.8.8/8.8.8) with ESMTP id KAA00610; Thu, 23 Apr 1998 10:57:27 +0200 (CEST) (envelope-from scratchy@yavin.franken.de) Message-Id: <199804230857.KAA00610@yavin.franken.de> X-Mailer: exmh version 2.0.2 2/24/98 To: Nate Williams cc: Tom Bartol , 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: Your message of "Wed, 22 Apr 1998 17:42:14 MDT." <199804222342.RAA07109@mt.sri.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 23 Apr 1998 10:57:27 +0200 From: Volker Paepcke Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > > 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 > Hi! I just want to say, that I had exactly the same problem as Tom Barto! The second fix (the 'portable' solution) works fine for me now :-) I assume that the THREADS_TYPE environment variable must be set for the JVM to find the correct libraries. Setting the LD_LIBRARAY_PATH is not enough. I just downloaded the 2.0a extensions from sun, has anybody got this one running already? Thanks! volker To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message