How do I configure the java.home in a agent of a hudson server?

10,502

You can configure where Jenkins/Hudson should search for the JDK on the agent on the Manage Nodes configuration page (${JENKINS_URL}/computer).

Check "Tool Locations", Click "Add", select the JDK from the List and type the path to the JDK in the "Home" text field below.

If JDK isn't showing up in the Tool Locations list, it may be because you need to configure a JDK globally first. To do this, check the "JDK" section in your global configuration page.

Share:
10,502
Winston Chen
Author by

Winston Chen

5+ years of experience in software development and architecture Fast learner and keen problem solver Real entrepreneur and starter Frequent Technology Conference and Community Speaker: COSCUP, JUG@TW, Scala Taipei and GTUG@TW I love lift!!

Updated on July 01, 2022

Comments

  • Winston Chen
    Winston Chen almost 2 years

    I am using a windows box to run the agent for my husdon. But I haven't found any effect way to configure JAVA_HOME and PATH for java on the box.

    Does anyone know how I am able to do this?