Date: Tue, 6 Feb 2007 06:49:54 -0800 From: Joseph Olatt <joji@eskimo.com> To: Cecil <ceco108@gimail.af.mil> Cc: freebsd-mobile@freebsd.org Subject: Re: What did I do wrong when I set the CLASSPATH?? Message-ID: <20070206064953.A2984@eskimo.com> In-Reply-To: <24af73f0e96946c79029bc68eb142886.ceco108@gimail.af.mil>; from ceco108@gimail.af.mil on Thu, Feb 01, 2007 at 05:29:56PM -0500 References: <24af73f0e96946c79029bc68eb142886.ceco108@gimail.af.mil>
next in thread | previous in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070206064953.A2984>
