Click to See Complete Forum and Search --> : Odd Java Swing Error


Energon
03-20-2001, 01:19 PM
I've been messing w/ some Swing stuff as we learn it in my CS class, and I've been doing it all on my laptop during the lectures, but I've been getting this really wierd error:

Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecifiic]

and it just repeats that in the xterm until the app actually starts up (ie, the window is created)... now, taking a wild guess here, it's saying I don't have that specific Adobe font installed, right? So I guess my question would be, how do I make that go away, or rather, where can I find that font?

Some additional info:
Running mid-current Slack 7.1, X 3.3.6 (don't wanna up to 4.0.x yet on my laptop)
JDK 1.2.2.006 (I refuse to try 1.3 until the take out the RedHat type bull****, even though it's easy to get around)

and when my professor runs her apps on the school server, she gets none of these errors, and they're on a RedHat 6.x system w/ X 3.3.6 as well, so this is either a Slack problem where I didn't install the right font package, or I've screwed something up somewhere... any ideas?

Marcel2008
03-20-2001, 05:06 PM
It could be you don't have the right font installed... or adobe fonts aren't supported.

Can you post some code?
Let me look at it.

;)

Energon
03-20-2001, 07:20 PM
I would, but there's nothing in there of relevence... I don't change any fonts, just create a class that extends JFrame, add a JPanel with a JButton in it... no font changing at all, just your basic "Test" window...

but I don't think it's a matter of adobe fonts not being supported, because if I run xfntsel, I can pick adobe fonts... so they're there... :\

Dru Lee Parsec
03-20-2001, 08:05 PM
Yes, it's looking for fonts that don't exist on your installation. I've fixed it before and I can't remember where the font file was that I edited. I'll track it down and let you know.

pwrhouse
03-20-2001, 10:49 PM
For me it was fixed when I installed JDK1.3 from the IBM site.

Energon
03-21-2001, 02:08 AM
well, I'd get 1.3 from Sun before going to IBM... I'm picky like that... :\

I do hope, though, that I can find a better solution... I really, really, really hate the idea that they'd assume that since RedHat has certain files in /usr/bin instead of /bin (where they belong), that everyone would have them there... they could do so many things to fix that, but nope... and it really irks me (again, I'm picky)...

So, now, will I need to edit a font file, or just install a font package that I missed on my first go around?

Marcel2008
03-21-2001, 06:47 AM
I found out there are two versions of the jdk1.3 from sun. I downloaded an earlier version from sun, and that didn't work at all. So i tried IBM. However i again downloaded jdk1.3 from sun, and this is an updated version that works. The version number is 1.3.0.2 i believe.

Energon
03-21-2001, 09:39 AM
have they fixed the problem where you have to symlink head and cut to /usr/bin? Or is that still an issue?

nanode
03-21-2001, 11:34 AM
I've been using Swing in Linux for a couple years now and this has always happened.

Unless you are missing specific fonts that you need, this shouldn't make a difference.