<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/source/xslt/xml-labs/setupguide.xsl"?>
<setupguide>

  <title>
    Installation Guide for Descriptor Systems 
    Building REST and SOAP Web Services for Eclipse Photon/JBoss EAP 7.1
  </title>

  <description>
    <p>
      This document describes the setup for the
          Installation Guide for Descriptor Systems' 
    Building REST and SOAP Web Services for Eclipse Photon/JBoss EAP 7.1 course.
    </p>
    <p>
      <b>Important:</b> Please print this document and as you install the
      software, mark up the document with the actual
      directory paths where you installed the software.
      Then leave a copy of the marked-up document for the instructor.
    </p>
    
    
    <p>
      With the exception of the operating system, all
      of the required software is available at no charge
      for download (some packages will require you to register on
      a website).
    </p>

    <p>
      If you have questions or difficulties with the installation,
      you can contact Joel Barnum at
        <a href="mailto:jbarnum@descriptor.com">jbarnum@descriptor.com</a>.
      or 319-362-3906.
    </p>
  </description>

  <hardware-requirements type="Student">
    <requirement>
      2GB of free disk space for installation
    </requirement>
    <requirement>
      16GB RAM minimum
    </requirement>
  </hardware-requirements>

  <hardware-requirements type="Instructor" >
    <requirement>Projection unit, 800x600 resolution minimum</requirement>
    <requirement>Internet connection for instructor computer strongly recommended</requirement>
  </hardware-requirements>

  <software-requirements type="Student">
    <requirement>
      Microsoft Windows 7 or later
    </requirement>

    <requirement>
      Current Google Chrome or Firefox Web browser
    </requirement>

    <requirement>
       Unzip utility such as 7-Zip from <a 
       href="http://www.7-zip.org/">http://www.7-zip.org</a>
    </requirement>

    <requirement>
      Java Standard Edition version 8 SDK
    </requirement>
    
    <requirement>
      Eclipse Photon for Java EE Developers
    </requirement>

    <requirement>
      JBoss EAP 7.1
    </requirement>    

    <requirement>
      Student Labs Archive
    </requirement>    


  </software-requirements>
    
  <software-requirements type="Instructor" >
    <requirement>Same as Student</requirement>
    <requirement>Courseware Viewer</requirement>
    <requirement>Screen Show Presentation Materials</requirement>
  </software-requirements>

  <setup-instructions type="Student">

    <step>
      <p>
        <b>Windows Vista or later:</b> 
        Login in with the same user name that the students will use, and note the
        user name here:
      </p>
      <pre>

Student user name: ____________________________________
      
      </pre>
      <p>
        In the "home" directory for that user (e.g. <b>c:\Users\username)</b>,
        create a folder named <b>java</b>. You will
        install some of the required software into this directory.
      </p>
    </step>
    
    <step>
      <p>
        Download the Java SE 8 Development Kit for Windows x86 from:
      </p>
      <code>
        <a href="https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html">
        https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html</a>
      </code>
      <p>
        Download the Windows x64 JDK.
        The file name should be something like <i>jdk-8u251-windows-x64.exe</i>.
      </p>
      <p>
        Install the JDK using all of the defaults.
      </p>
      <p>
        Look in the c:\Program Files\Java folder to see the JDK installation directory
        and write it down here:
      </p>
      <pre>
      
JDK Installation Directory:  _________________________________________________________      
      
      </pre>
      <p>
        The directory should be something like:
      </p>
      <pre>
C:\Program Files\Java\jdk1.8.0_251      
      </pre>
    </step>
    <step>
      <p>
        In the Windows Start menu, search for <i>Environment variables</i>,
        choose <i>Edit the System Environment Variables</i> to open the 
        Windows Control Panel's System Properties, Advanced tab. Click the
        <i>Environment Variables</i> button. 
      </p>
      <p>
        Add a new User Variable named <b>JAVA_HOME</b> and set its value
        to the JDK Installation Directory you noted previously.
      </p>
      <p>
        Either Add or Edit the User Variable named <i>Path</i> and set its
        value to the JDK Installation Directory with <b>/bin</b> appended, for
        example:
      </p>
      <pre>
C:\Program Files\Java\jdk1.8.0_211\bin      
      </pre>
      <p>
        Press OK twice to save the environment variables.
      </p>
    </step>
    
    <step>
      <p>
        To test the JDK installation, choose Start - Run, then
        enter <i>cmd</i> and press OK. In the new command prompt window, enter:
      </p>
      <code>
        javac -version
      </code>
      <p>
        You should see a version number, e.g. <i>javac 1.8.0_251</i>.
      </p>
      <p>
        Enter:
      </p>
      <code>
        wsimport -version
      </code>
      <p>
        You should see a version number, e.g. <i>wsimport version "2.2.9"</i>.
      </p>
    </step>
    
    <step>
      <p>
        Download the Eclipse Photon IDE For Java EE Developers for 64-bit Windows from:
      </p>
      <p>
        <a href="https://www.eclipse.org/downloads/packages/release/photon/r">
          https://www.eclipse.org/downloads/packages/release/photon/r
        </a>.
      </p>
      <p>
        <b>Warning: </b>Be sure to download the IDE for Java EE Developers, not
        the IDE for just Java Developers.
      </p>
      <p>
        The file name should be something like <i>eclipse-jee-photon-R-win32-x86_64.zip</i>.
      </p>
      <p>
        Unzip the archive to the <i>c:\Users\username\java</i> directory. You should end up
        with a subdirectory named <b>c:\Users\username\java\eclipse</b>.
      </p>
    </step>


    <step>
      <p>
        To test the Eclipse installation, use Windows Explorer or My Computer to navigate
        to the c:\java\eclipse or c:\Users\username\java\eclipse directory and double-click <b>eclipse.exe</b>.
        Eclipse should start.
      </p>
    </step>
    
    <step>
      <p>
        Download JBoss EAP 7.1.0 from:
      </p>
      <p>
        <a href="https://developers.redhat.com/products/eap/download">
          https://developers.redhat.com/products/eap/download
        </a>
      </p>
      <p>
        Scroll down to find the <i>7.1.0</i> section then click the
        Download button for the ZIP File.
      </p>
      <p>
        The file name should be <i>jboss-eap-7.1.0.zip</i>.
      </p>
      <p>
        Unzip the archive to the <i>c:\Users\username\java</i> directory. You should end up
        with a subdirectory named <b>c:\Users\username\java\jboss-eap-7.1</b>.
      </p>
    </step>
    
    <step>
      <p>
        To test the JBoss installation, use Windows Explorer to navigate to 
        c:\Users\username\java\jboss-eap-7.1\bin.
        Double-click on the <i>standalone.bat</i> file - JBoss should open a command-prompt
        window and start up, eventually displaying a message containing the text
        "JBoss EAP 7.1.0.GA .... started".
      </p>
      <p>
        You can close the JBoss command-prompt window when you are finished testing.
      </p>
    </step>

    <step>
      <p>
        Download the Student Labs Archive from 
        <a href="http://www.descriptor.com/setupguides/jaxws-3day/setup/eclipse-kepler-jboss7.1.1Final/websrvclass.zip">
          http://www.descriptor.com/setupguides/jaxws-3day/setup/eclipse-kepler-jboss7.1.1Final/websrvclass.zip
        </a>
      </p>
    </step>    
    
    <step>
      <p>
        Under Windows XP, 
        unzip websrvclass.zip to the root directory of drive C. You should end up
        with a subdirectory named <b>c:\websrvclass</b>.
      </p>
      <p>
        Under Windows Vista or later, 
        unzip websrvclass.zip to the <i>c:\Users\username</i> directory. You should end up
        with a subdirectory named <b>c:\Users\username\websrvclass</b>.
      </p>
    </step>
    
  </setup-instructions>

  <setup-instructions type="Instructor">
    <step>
      <p>Repeat the Student setup instructions on the
      Instruction machine.</p>
    </step>
    
    <step>
      <p>Download and install the Courseware Viewer program.</p>
      <p>Download the Viewer installation program from:
        <a href="http://www.descriptor.com/viewer/binaries/setup.exe">
        http://www.descriptor.com/viewer/binaries/setup.exe
      </a>
      </p>
      <p>
        Run the installation program, accepting all defaults.
      </p>
    </step>
    <step>
      <p>
         Download the presentation materials from 
         <a href="http://www.descriptor.com/setupguides/jaxws-3day/setup/websrvclass-screenshow-3day.zip">
           http://www.descriptor.com/setupguides/jaxws-3day/setup/websrvclass-screenshow-3day.zip
         </a>
      </p>
      <p>
        Unzip this archive to the same directory where you installed
        the <i>Student Exercise Archive</i>. You should end up with a subdirectory like
        <b>c:\websrvclass\courseware</b> or <b>c:\Users\username\websrvclass\courseware</b>.
      </p>
    </step>
    <step>
      <p>
        Test the Courseware Viewer. From the Windows Start menu, choose <b>Descriptor Systems -
        Courseware Viewer</b>. Then use the <b>File - Open</b> menu to open the
        <b>c:\websrvclass\courseware\websrvclass.crs</b> file. You should see the screen show.
      </p>
    </step>
    
  </setup-instructions>
-->
</setupguide>
