What did I do wrong when I set the CLASSPATH??

"Cecil" <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
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


What did I do wrong when I set the CLASSPATH??



_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.