Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Java Prefs error when using vaadin-maven-plugin::compile

Peter Hansson
7 years ago Sep 19, 2015 4:15pm

I see the following error when building my Vaadin application:

Using com.vaadin:vaadin-client version 7.5.5
sep. 19, 2015 5:29:17 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.

It seems there's some software in the Maven tool chain that attempts to use the so-called systemRoot() from Java Preferences. On a Windows platform this translates into Windows Registry HKLM path where 99% of users do not have write access ... unless they always run as Administrator with UAC turned off, and true those people will never see the above error message.

How can this be fixed?

(there are several reports on this but no solution as far as I can tell)

 

Michael Benz
6 years ago Dec 12, 2016 2:55pm
Olli Tietäväinen
6 years ago Dec 13, 2016 7:08am
Michael Benz
6 years ago Dec 13, 2016 8:43am
Olli Tietäväinen
6 years ago Dec 13, 2016 8:56am
Michael Benz
6 years ago Dec 15, 2016 10:09am
Peter Hansson
6 years ago Dec 15, 2016 10:50pm