[geotk] Windows registry node warnings.

Martin Desruisseaux martin.desruisseaux at geomatys.com
Thu Mar 24 02:43:35 PDT 2016

Hello Lucio

This warning is caused by the Java preferences mechanism
(java.util.prefs package) trying to initialize the preferences. Geotk
use the java.util.prefs mechanism for information like where you would
like Geotk to store the EPSG database.

However, in practice this is causing issues like the one you describe.
For this reason we are already in process of removing this mechanism.
The Geotk referencing module will be replaced by the Apache SIS
referencing module, and Apache SIS does not use java.util.prefs anymore.

In the main time, to get ride of the warning there is two possibilities:

  * If you are willing to recompile the project, you can edit the
    file and disable usage of the Preferences class.
  * Or you can use the 4.0-SNAPSHOT version which already reduced usage
    of preferences (but I'm not sure if it already eliminate it completely).


Le 24/03/16 04:37, lucio Piccoli a écrit :
> hi all
> i am new user.
> i downloaded geotk-referencing 4.0-M4 and ran a demo.
> but i am getting heaps of windows regkey warning and big delay when
> running the test.
> stuff like
> Mar 24, 2016 1:16:31 PM java.util.prefs.WindowsPreferences
> WindowsRegOpenKey1
> WARNING: Trying to recreate Windows registry node
> Software\JavaSoft\Prefs\org\geotoolkit at root 0x80000002.
> why is geotools writing to the registry?
> and can i prevent it from doing so?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geotoolkit/attachments/20160324/65e8ee7a/attachment.html>

More information about the Geotoolkit mailing list