Only Software matters

Experiences in software development

  • Enter your email address to follow this blog and receive notifications of new posts by email.

    Join 633 other followers

  • MVB

  • JavaCodeGeeks

    Java Code Geeks

  • My recent tweets

    • RT @omadaalithias: 6 hours ago
    • RT @GVeltsi: 6 hours ago
    • RT @kstoupas: Η Ελλαδα εχει καταστεί μια μη κυβερνήσιμη χώρα. Ένα αποτυχημένο κράτος. Τέτοιες χώρες μόνο μετά από μεγάλες καταστροφές συνέρ… 6 hours ago
    • RT @IskarAzif: Οι Συριζαίοι είναι χειρότεροι από τους Χρυσαυγίτες διότι κρύβουν τον άκρατο φασισμό τους πίσω από ψεύτικα συνθήματα ανθρωπιά… 6 hours ago
    • RT @GVeltsi: Δεν υπάρχει κανένα «μα» για καμιά κοινωνική ομάδα που διαμαρτύρεται για επιπλέον φόρους τη στιγμή που αυτό το κράτος έχει 46 δ… 6 hours ago

Make jenkins Windows service use your preferred JRE

Posted by Patroklos Papapetrou on November 21, 2013

Recently I was working on installing and configuring a new instance of Jenkins. For some reason, which is out of this post’s context, I wanted to make Jenkins run with a specific version of the Java environment. Forutenately it was something really easy. This post is mainly a reminder to me, next time I’d like to do the same :)

Jenkins by default uses the jre which located under the jre sub-directory of your jenkins installation home ( %JENKINS_HOME ).

To change this find the file named jenkins.xml in which is located in your %JENKINS_HOME directory. 

Edit it and look for the following section


Now change the content of the executable property to point to your favorite JRE. You can describe it as an absolute or relative path or you can even use, environment variables.

Save the file and restart Jenkins.

That’s it!



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 633 other followers

%d bloggers like this: