From owner-freebsd-java Wed Mar 8 23:53:43 2000 Delivered-To: freebsd-java@freebsd.org Received: from rztsun.rz.tu-harburg.de (rztsun.rz.tu-harburg.de [134.28.200.14]) by hub.freebsd.org (Postfix) with ESMTP id 02F1037B542 for ; Wed, 8 Mar 2000 23:53:25 -0800 (PST) (envelope-from reimers@tu-harburg.de) Received: from tu-harburg.de (data.et8.tu-harburg.de [134.28.45.64]) by rztsun.rz.tu-harburg.de (8.9.0/8.8.8) with ESMTP id IAA24959; Thu, 9 Mar 2000 08:53:17 +0100 (MET) Message-ID: <38C7586D.FAC3F1A@tu-harburg.de> Date: Thu, 09 Mar 2000 08:53:17 +0100 From: Sven Reimers X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 3.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: "Viren R.Shah" Cc: freebsd-java@FreeBSD.ORG, Ernst de Haan Subject: Re: font problems with displaying Java Swing on FreeBSD References: <14534.24254.753198.892575@jabberwock.rstcorp.com> <38C6714D.25C2C58E@tu-harburg.de> <14534.46936.495288.407359@jabberwock.rstcorp.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Did you adjust your fontpath under X? Here is mine: /usr/X11R6/lib/X11/fonts/misc:unscaled,/usr/X11R6/lib/X11/fonts/75dpi:unscaled, /usr/X11R6/lib/X11/fonts/100dpi:unscaled,/usr/X11R6/lib/X11/fonts/Type1, /usr/X11R6/lib/X11/fonts/Speedo,/usr/X11R6/lib/X11/fonts/misc, /usr/X11R6/lib/X11/fonts/75dpi,/usr/X11R6/lib/X11/fonts/100dpi, /usr/X11R6/lib/X11/fonts/URW, !!! URW-fonts /usr/X11R6/lib/X11/fonts/freefont, !!! Freefonts /usr/local/lib/xemacs/xemacs-packages/etc/x-symbol/pcf/ Else try the freefonts. I just want to add that it works for me (no missing fonts). "Viren R.Shah" wrote: > > >>>>> "Sven" == Sven Reimers writes: > > Sven> Get the URW-fonts (e.g gimp.org) > Sven> Sven > > I did get and install them. Unfortunately I still have the same > problem. I'm running XFree86 3.3.5 -- could this be a problem? > [I also looked at blackdown.org, which suggests the same thing] > > I also tried installing gsfonts-5.10, and manually editing the > fonts.scale file to change the zapfchancery font spec to conform to > what the solaris JDK wanted -- this stopped the eoor messages below, > but I still get the same exception. Any ideas? > > Sven> "Viren R.Shah" wrote: > >> > >> [This is only tangentially related to FreeBSD Java, but it seemed like > >> the best forum for it] > >> > >> I'm trying to display a Java 1.2.2/Swing application from a Solaris > >> 2.7 box onto a FreeBSD -current machine. It won't display, citing the > >> following error messages: > >> > >> Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] > ...[deleted lots more of the same] > >> Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] > >> Exception in thread "main" java.lang.NullPointerException > >> at java.util.Hashtable.get(Hashtable.java, Compiled Code) > >> at javax.swing.UIDefaults.get(UIDefaults.java, Compiled Code) > >> at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java, Compiled Code) > >> at javax.swing.UIDefaults.getUIClass(UIDefaults.java, Compiled Code) > >> at javax.swing.UIDefaults.getUI(UIDefaults.java, Compiled Code) > >> at javax.swing.UIManager.getUI(UIManager.java, Compiled Code) > >> at javax.swing.JPanel.updateUI(JPanel.java, Compiled Code) > >> at javax.swing.JPanel.(JPanel.java, Compiled Code) > >> at javax.swing.JPanel.(JPanel.java, Compiled Code) > >> at javax.swing.JRootPane.createGlassPane(JRootPane.java, Compiled Code) > >> at javax.swing.JRootPane.(JRootPane.java, Compiled Code) > >> at javax.swing.JFrame.createRootPane(JFrame.java, Compiled Code) > >> at javax.swing.JFrame.frameInit(JFrame.java, Compiled Code) > >> at javax.swing.JFrame.(JFrame.java, Compiled Code) > >> at SwingApplication.main(SwingApplication.java, Compiled Code) > >> > >> I tried the same thing on an NT box with X-Win32, and while it gave > >> the same erros, it did display. Also the application displayed on the > >> console of the solaris box. This is one of the standard exampels in > >> the Swing tutorial. > >> http://web2.java.sun.com/docs/books/tutorial/uiswing/start/example-swing/SwingApplication.java > >> > >> Does anyone have a solution for this. I use FreeBSD for my desktop, > >> and this makes it very difficult to write a java/swing app. > >> > >> Thanks > >> Viren > > Thanks > Viren > -- > Viren R. Shah {viren @ rstcorp . com} > Names : Vanadium(23) Iodine(53) RhEnium(75) Nitrogen(7) > Density(g/mL): 5.8 4.92 21 0.0001251 > Average Density: 7.93003 g/mL > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message