Open timja opened 9 years ago
Attaching possible cause.
The problem appears to be caused by a lack of permissions. I encountered the same issue and starting browser (Firefox) as administrator allowed the installation to proceed.
I'm having this issue happen at the moment. I created a new VPS running Windows 10 2016, and the only user is the Administrator user.
Using said Administrator user, launching the jnlp results in a successful connection. However, installing the service results in the error from the original post. Additionally, the Jenkins master logs states the same things in the problem.txt attachment from Marko Zivanovic.
I had the same issue and I was able to fix it by running jenkins like this (in elevated CMD window):
java "-Djna.nosys=true" -jar jenkins.war
then Jenkins was able to install as a service.
Also I added that system property to the jenkins.xml file like this:
Everytime I try to configure jenkins as a windows service, I get the following error:
Originally reported by tosihiro2007, imported from: Installation error: Could not initialize class com.sun.jna.Pointer