Click to See Complete Forum and Search --> : Java Swing toolkit. weird message


ArtVandelay
12-29-2002, 07:06 AM
I just installed JDK and I wanted to test swing to see what it looked like under RedHat. It worked as expected. It was just a little hello world that opened a JFrame with a label in it, but this message appeared:

Dec 29, 2002 2:48:11 AM java.util.prefs.FileSystemPreferences$3 run
WARNING: Could not create system preferences directory. System preferences are unusable.


Anyone know what that's all about? The program does work, otherwise.

What I'm loving about Linux terminals, by the way, is that I can spawn a swing GUI or an emacs window or whatever and use & so the terminal doesn't just halt until closing the window.

uptimenotifier
12-29-2002, 09:48 AM
Check if you have a writable /etc/.java directory.

If this dir does not exist you could mkdir /etc/.java as root

Or,

run java once as root.

I'm not sure if you need to chown /etc/.java to a normal user.

chris_i386
12-29-2002, 10:06 AM
Originally posted by ArtVandelay
What I'm loving about Linux terminals, by the way, is that I can spawn a swing GUI or an emacs window or whatever and use & so the terminal doesn't just halt until closing the window.
Ever tried start programname in a win2k / xp terminal? That has the same effect.

...can't help you with your Java problem, though.

ArtVandelay
12-30-2002, 04:47 AM
>Ever tried start programname in a win2k / xp
>terminal? That has the same effect.


I just gave this a try with a swing program and it opened up an entire new terminal, so the new one halted instead of the original one!

(I have a RH8.0 box and a win2K box (the latter being for warcraft 3, mostly!))

ArtVandelay
12-30-2002, 05:07 AM
>run java once as root.


Thanks. The directory automatically got
created when I ran the program as root,
and problem solved.