From owner-freebsd-java Wed Apr 22 14:21:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA01120 for freebsd-java-outgoing; Wed, 22 Apr 1998 14:21:07 -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 VAA01048; Wed, 22 Apr 1998 21:20:55 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 OAA25975; Wed, 22 Apr 1998 14:20:52 -0700 (PDT) Date: Wed, 22 Apr 1998 14:20:29 -0700 (PDT) From: Tom Bartol To: Nate Williams cc: freebsd-java@FreeBSD.ORG, java-port@FreeBSD.ORG, ritter@orbisys.com Subject: Re: JWS2.0/libawt.so trouble In-Reply-To: <199804222049.OAA05643@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've installed JWS 2.0 as per the instructions posted at > > > > www.freebsd.org/java (thanks, Amancio!). When I try to run jws as > > > > follows: > > > > > > > > /usr/local/Java-WorkShop2.0/JWS/intel-S2/bin/jws > > > > > > > > I get this: > > > > > > > > JAVA_HOME = /usr/local/Java-WorkShop2.0/JDK > > > > LD_LIBRARY_PATH = /usr/lib:/usr/X11R6/lib:/usr/local/lib: > > > > /usr/local/Java-WorkShop2.0/JDK/lib/i386/green_threads: > > > > /usr/local/Java-WorkShop2.0/JWS/intel-S2/bin > > > > /usr/libexec/ld.so: warning: /usr/X11R6/lib/libXext.so.6.1: minor version > > > > 1 older than expected 3, using it anyway > > > > cannot stat "/usr/local/Java-WorkShop2.0/JWS/intel-S2/bin/libawt.so" : No > > > > such file or directory (libawt.so) > > > > java.lang.UnsatisfiedLinkError: no awt in shared library path > > > > at java.lang.Runtime.loadLibrary(Runtime.java) > > > > at java.lang.System.loadLibrary(System.java) > > > > at > > > > at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:402) > > > > at java.awt.SystemColor.updateSystemColors(SystemColor.java:350) > > > > at > > > > at sun.jws.WaitFrame.(WaitFrame.java:16) > > > > at sun.jws.WaitFrame.showIt(WaitFrame.java:56) > > > > at sun.jws.Main.main(Main.java:143) > > > > > > Is your DISPLAY environment set? If not, it can't find the graphics > > > stuff. (Don't ask, it's for legal/performance reasons). > > > > Yes my DISPLAY environment variable is set to :0.0 > > I've tried setting it to the fully qualified name of my machine and that > > didn't help either. > > Hmm, how is JWS calling 'java'? It appears to not be calling it with > the DISPLAY environment set. :( > > > Nate > 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 "/usr/local/Java-WorkShop2.0/JWS/lib/jws_patch.zip: /usr/local/Java-WorkShop2.0/JWS/lib/jws.zip: /usr/local/Java-WorkShop2.0/JDK/lib/classes.zip: /usr/local/Java-WorkShop2.0/JWS/classes: /home/bartol/.jws2.0/ImportedComponents/classes: /home/bartol/.jws2.0/PlugIns/classes: /usr/local/Java-WorkShop2.0/JWS/PlugIns/classes" -Djws.build.classes="/usr/local/Java-WorkShop2.0/JDK/lib/classes.zip" -Djws.classes="/usr/local/Java-WorkShop2.0/JWS/lib/jws_patch.zip: /usr/local/Java-WorkShop2.0/JWS/lib/jws.zip: /usr/local/Java-WorkShop2.0/JWS/classes" -Djws.home="/usr/local/Java-WorkShop2.0/JWS" -Dhotjava.home="/usr/local/Java-WorkShop2.0/JWS" -Djws.bin="/usr/local/Java-WorkShop2.0/JWS/intel-S2/bin" -Djdk.bin="/usr/local/Java-WorkShop2.0/JDK/bin" -Djws.ut.user=bartol -Djws.variant="intel-S2" -Djws.ut.platform="SunOS" -ms5m -ss384k -noclassgc -noasyncgc -Djws.startcmd=jws.showwin.mainide -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? Tom To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message