From owner-freebsd-java Wed Apr 22 15:37:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA20446 for freebsd-java-outgoing; Wed, 22 Apr 1998 15:37:35 -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 WAA20398; Wed, 22 Apr 1998 22:37:28 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 PAA03436; Wed, 22 Apr 1998 15:37:25 -0700 (PDT) Date: Wed, 22 Apr 1998 15:37:00 -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: <199804222212.QAA06399@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: > > I just modified the jws startup_wrapper to output the java command line > > and this is what I get: > > > > /usr/local/Java-WorkShop2.0/JDK/bin/i386/green_threads/java -classpath > > Why is java being run out of there? If the JDK is installed there, then > you need to change JAVA_HOME to point there. (I don't know what's going > on with regard to Amancio's changes/patches, so forgive me.) > /usr/local/Java-WorkShop2.0/JDK is a symlink to /usr/local/jdk1.1.5 so this is fine. If I set JAVA_HOME to point directly at /usr/local/jdk1.1.5 Then I get: /usr/local/jdk1.1.5/bin/i386/green_threads/java -classpath ... And jws still fails so that's not it. > > -Djws.xdisplay=:0.0 sun.jws.Main > > > > It looks like it's setting jws.xdisplay to the correct value. Is this the > > variable you were referring to? > > No, I'm referring to the 'DISPLAY' variable, which is part of your shell > and is used by the java shell script to use the 'appropriate' JVM. (One > doesn't contain any linkage for the X stuff, hence the original error.) > > > Nate Well, my DISPLAY shell variable _IS_ set to :0.0 as I originally stated. Inside the startup_wrapper for jws $DISPLAY is being picked up properly and passed on the java command line as far as I can tell in the -Djws.xdisplay=:0.0 argument to java. If this is not what you mean by passing the DISPLAY environment variable to java then please spell out what you mean and/or what the command line to java should look like (sorry for the frustrated tone of this e-mail, thanks for your help!) Perhaps Amancio can shed more light here? Thank you very much, Tom To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message