Installation on Windows 7/ Windows 10

0.  Place the zip file hegWINv2.15.zip in a directory that does 
    NOT HAVE ANY SPACES in the directory pathname.  HEG will be installed 
    under this path tree.
    Example: 
        C:\HEGtools\hegWINv2.15.zip

1.  Install java (jdk1.8 or jre8 or newer windows version).
    Example:
        PS C:\> java -version
        java version "1.8.0_391"
        Java(TM) SE Runtime Environment (build 1.8.0_391-b13)
        Java HotSpot(TM) Client VM (build 25.391-b13, mixed mode)

2.  Unzip C:\HEGtools\hegWINv2.15.zip to the current directory. 
    Example:
        C:\HEGtools

3.  Double click on install.bat and follow the instruction in   
    MS-DOS window that appears. 
    a. "Enter the HEG full directory path:"
        * Give an absolute path, without wildcards or other special characters.
        * Replace each backslash '\' with a forward slash '/'.
        * If you must use a blank space in a directory name (strongly NOT recommended),
          then precede it with a backslash."
        Example: C:/HEGtools
                 C:/Program\ Files/HEG
                 D:/HEGtools/HEG
                 C:/HEGTools/HEG2.14/HEG  
    b. "Please enter the path to your Java bin directory:"
        * Your Java must be Java 8 or later version.
        * Give an absolute path, without wildcards or other special characters.
        * Replace each backslash '\' with a forward slash '/'.
        * Precede each space with a backslash: '\ '.
        Example: C:/Program\ Files\ (x86)/Common\ Files/Oracle/Java/javapath
                 C:/windows
                 C:/Program\ Files/JavaSoft/JRE/1.8.0_65/bin
                 C:/Program\ Files/Java/jre8/bin
                 C:/jdk1.8.0_65/bin
    c. "Please enter a username used internally by HEG (e.g. SHARON):"

4.  A file HEGTool.bat will be created by the installation in 
    .\HEG\HEG_Win\bin directory. 
    Example:
        C:\HEGtools\HEG\HEG_Win\bin\HEGTool.bat

5.  Go to this bin directory, where HEGTool.bat file is, and 
    right click on HEGTool.bat. Click on the Create Shortcut. 
    You can change the icon for this shortcut as in step 6.
6.  Right click on the HEGTool.bat Shortcut. Click on the  
    Properties and then click on the Change Icon. Now click on 
    Browse and select the file "heg.ico" in the HEG_Win\bin  
    directory
7.  To run HEG Double click on the created shortcut(s) or the 
    HEGTool.bat in the HEG_Win\bin directory.


Troubleshoot:

1.  Also if you succeed in installing HEG and creating HEGTool.bat you 
    may get error during opening HEGTool.bat. If after clicking on HEGTool.bat
    the MS-DOS window appears for a very short time and then disappears, then
    you are having some kind of error in HEGTool.bat. To see what the error 
    is and to correct it do the following:
    a. Open MS-DOS Command Prompt window yourself. In that window change
        the directory to the one that HEG's bin directory is.
    b. Type HEGTool.bat and press Return. You will get an error. Correct the 
        problem (Which more likely is a path problem) and continue.

2.  If HEG GUI disappears right after opening, you are getting some kind of error (most 
    likely JAVA).
    To resolve the problem open a MS DOS command window. In that window change the directory 
    to your HEG's bin directory and type HEGTool.bat. This time the DOS window will not 
    dissapear. See what the problem is and fix it.

3. Please note that in windows:
   a. You should not install HEG or have your data files in directories that have blank space in
      them. For example you should not install HEG in "Program Files" directory.
   b. In your HEG's bin directory you will have "HEGTool.bat" and "hegtool.exe" after 
      installation. You should use "HEGTool.bat" for opening HEG GUI. The ".exe" files are 
      internal executables, or can be used on command line.
   c. If you decide to run HEG executables on command line you will need to set a few 
      environment variables before running the executables. See "HEGTool.bat" for needed 
      environment variable and how to set them.
