Re: [OpenMap Users] Java 1.4.0_02 Problems

From: Hervé Allemand <hallemand@mangoosta.fr>
Date: Mon Oct 14 2002 - 15:32:01 EDT

Hello Eliot,

Monday, October 14, 2002, 7:21:14 PM, you wrote:

EL> Good afternoon...

EL> I'm trying to run openmap-4.5.3 with Java 1.4.0_02 on a RedHat Linux
EL> 7.2 machine. When I run the bin/openmap shell script, I get an openmap
EL> window, but on the console, I get the message

EL> Oct 14, 2002 12:55:50 PM java.util.prefs.FileSystemPreferences$2 run
EL> WARNING: Could not create system preferences directory. System
EL> preferences are unusable.

EL> This does not seem to be a problem on Windows. Any ideas? I saw this
EL> behavior on a Solaris 8 machine as well (with the same j2sdk).

EL> Regards,

EL> Eliot

The warning you are witnessing is linked to the new Preferences API
included since the JDK 1.4.

The first time the JVM is launched, it tries to creates the structure
used to store the system and user preferences.

On Windows machines, system and user preferences are stored in the
registry, under the keys named [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Prefs]
and [HKEY_CURRENT_USER\Software\JavaSoft\Prefs]. I think the system
preferences tree is created at installation, and I am sure the user
preferences tree is created the first time the JVM launches a Java
program.

On Unix machines, the system and user preferences are using XML files
located in specific directories. I do not know where the system
preferences are stored, but I know the user preferences are stored in
the user home directory, in a ".java"-like directory I guess.
If the behavior is the same as under Windows, the user preferences
directory should be created the first time the JVM launches a program.
You should then have write access to that directory.
If it is a write access rights problem, you should then witness the
same warning when launching any java program, and not only OpenMap.

Anyway, since as far as I know, OpenMap doesn't use the Preferences
API, this should not be a problem for you.

I do not know much about Unix, but I hope this helps.

-- 
Best regards,
 Hervé Allemand                         mailto:hallemand@mangoosta.fr
--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Oct 14 15:37:41 2002

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT