From owner-freebsd-mobile@FreeBSD.ORG Tue Feb 6 15:11:44 2007 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4566616A402 for ; Tue, 6 Feb 2007 15:11:44 +0000 (UTC) (envelope-from joji@eskimo.com) Received: from ultra6.eskimo.com (ultra6.eskimo.com [204.122.16.69]) by mx1.freebsd.org (Postfix) with ESMTP id 01EBD13C48E for ; Tue, 6 Feb 2007 15:11:43 +0000 (UTC) (envelope-from joji@eskimo.com) Received: from eskimo.com (eskimo.com [204.122.16.13]) by ultra6.eskimo.com (8.13.6/8.13.4) with ESMTP id l16EnsV7027511; Tue, 6 Feb 2007 06:49:54 -0800 Received: (from joji@localhost) by eskimo.com (8.9.1a/8.9.1) id GAA03928; Tue, 6 Feb 2007 06:49:55 -0800 (PST) Date: Tue, 6 Feb 2007 06:49:54 -0800 From: Joseph Olatt To: Cecil Message-ID: <20070206064953.A2984@eskimo.com> References: <24af73f0e96946c79029bc68eb142886.ceco108@gimail.af.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <24af73f0e96946c79029bc68eb142886.ceco108@gimail.af.mil>; from ceco108@gimail.af.mil on Thu, Feb 01, 2007 at 05:29:56PM -0500 Cc: freebsd-mobile@freebsd.org Subject: Re: What did I do wrong when I set the CLASSPATH?? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Feb 2007 15:11:44 -0000 On Thu, Feb 01, 2007 at 05:29:56PM -0500, Cecil wrote: > > Hello all, > > I have installed Sun JDK1.6.0 on my FreeBSD 6.2 laptop, and I cant seem to get the CLASSPATH set right in my .profile file. I really need to know the syntax of using the wildcard * to open folders in the CLASSPATH variable to cutdown on all the typing. > > Can I do the following: > > CLASSPATH=$CLASSPATH:./:/usr/local/jdk1.6.0/*.zip:/usr/local/jdk1.6.0/lib/*/*.jar; export CLASSPATH > > PATH=/usr/local/jdk1.6.0/bin:/usr/local/jdk1.6.0/jre/bin:/sbin:/bin:/usr/sbin:/u > sr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:$HOME/bin; > export PATH > > JAVA_HOME=/usr/local/jdk1.6.0/jre; export JAVA_HOME > > CLASSPATH=/usr/local/jdk1.6.0/:/usr/local/jdk1.6.0/lib/:/usr/local/jdk1.6.0/jre/ > lib/:/usr/local/jdk1.6.0/lib/applet/:/usr/local/jdk1.6.0/lib/audio/:/usr/local/j > dk1.6.0/lib/cmm/:/usr/local/jdk1.6.0/lib/deploy/:/usr/local/jdk1.6.0/lib/desktop > /*:/usr/local/jdk1.6.0/lib/ext/*:/usr/local/jdk1.6.0/lib/fonts/*:/usr/local/jdk1 > .6.0/lib/i386/*:/usr/local/jdk1.6.0/lib/im/*:/usr/local/jdk1.6.0/lib/images/*:/u > sr/local/jdk1.6.0/lib/locale/*:/usr/local/jdk1.6.0/lib/management/*:/usr/local/j > dk1.6.0/lib/oblique-fonts/*:/usr/local/jdk1.6.0/lib/security/*:/usr/local/jdk1.6 > .0/lib/zi/*; > export CLASSPATH > > $ which java_vm > /usr/local/jdk1.6.0/jre/bin/java_vm > > $ java -version > java version "1.6.0" > Java(TM) SE Runtime Environment (build 1.6.0-b105) > Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode) > > But when I test the libraries I get this: > > $ jconsole > Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/jdk1.6.0/jre/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory Does your LD_LIBRARY_PATH contain /usr/X11R6/lib? If not try the setting the following and see if it works: LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/X11R6/lib; export LD_LIBRARY_PATH libXext.so.6 comes from xorg-libraries-6.8.2. It looks like "jconsole" needs it. > What did I do wrong when I set the CLASSPATH?? > > > > _______________________________________________ > freebsd-mobile@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mobile > To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@freebsd.org"