Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!usenet.eel.ufl.edu!news.mathworks.com!newsfeed.internetmci.com!news.mci.com!news-w.ans.net!newsfeeds.ans.net!lantana.singnet.com.sg!chenab.lums.edu.pk!chenab.lums.edu.pk!not-for-mail From: aslam@lums.edu.pk (Sohail Aslam) Newsgroups: comp.lang.java,comp.unix.bsd.freebsd.misc Subject: Kaffe's CLASSPATH interferes with Netscape's java_30 Date: 19 Aug 1996 17:08:10 +0500 Organization: Lahore University of Management Sciences (LUMS) Lines: 40 Message-ID: <4v9lfa$s52@chenab.lums.edu.pk> NNTP-Posting-Host: chenab.lums.edu.pk Xref: euryale.cc.adfa.oz.au comp.lang.java:74760 comp.unix.bsd.freebsd.misc:25672 I had asked in comp.unix.bsd.freebsd.misc why Netscape won't run java applets on my FreeBSD machine with DISPLAY set to another unix host running X windows. After a process of elimination I discovered that kaffe's CLASSPATH was interfering with Netscape's java_30. I had setenv CLASSPATH to ".:/usr/local/kaffe/classes.zip" as suggested in kaffe's (FreeBSD version) installation guide. When I unsetenv CLASSPATH Netscape started executing (interpreting) my java applets. I then appended java_30 path to CLASSPATH: setenv CLASSPATH ".:/usr/local/kaffe/classes.zip:/usr/local/lib/netscape/java_30" Netscape 3.0 stopped executing java applets. I rearranged the order so that java_30 comes first, i.e., setenv CLASSPATH ".:/usr/local/lib/netscape/java_30:/usr/local/kaffe/classes.zip" Netscape now interprets java applets and kaffe is also happy. The README file for Netscapes says that java_30 can be placed in one of the following places: The current directory /usr/local/netscape/java/classes /usr/local/lib/netscape $HOME/.netscape but, evidently, if CLASSPATH is set, it overrides this. The command strings netscape | grep CLASSPATH yields the following suggesting that CLASSPATH is looked at by Netscape. The use of -classpath was also suggested in using netscape's "javac" mode in a thread that appears in comp.lang.java. In summary, if Netscape does not interpret (execute) java applets under FreeBSD, check your CLASSPATH variable. -- Sohail Aslam Assistant Professor, Lahore University of Management Sciences (LUMS) Lahore, Pakistan tel: 92-42-572-2670 fax: 92-42-572-2591 email: aslam@lums.edu.pk