Chapter 2. Creating a Build Environment

This chapter describes how to create a build environment to develop applications using the Java software development kit.

2.1. Installing the Java Software Development Kit

Install the Java software development kit and accompanying documentation.

Procedure 2.1. Installing the Java Software Development Kit

  1. Ensure your system is subscribed to the Red Hat Enterprise Virtualization entitlement in Red Hat Subscription Manager:
    # subscription-manager list --available | grep -A8 "Red Hat Enterprise Virtualization"
    # subscription-manager attach --pool=pool_id
    # subscription-manager repos --enable=rhel-6-server-rpms
    # subscription-manager repos --enable=rhel-6-server-rhevm-3.6-rpms
    # subscription-manager repos --enable=jb-eap-6-for-rhel-6-server-rpms
    
  2. Install the required packages:
    # yum install rhevm-sdk-java
    # yum install rhevm-sdk-java-javadoc
The Java software development kit and accompanying documentation are downloaded to the /usr/share/java/rhevm-sdk-java directory, and can now be added to Java projects.