If a license is granted when the tool is started from one environment (for
    example, Eclipse) and the license is not granted if the tool is started from
    another environment (for example, a DOS Box, a custom Start Menu, Taskbar,
    or File Explorer), this may indicate that the variable settings between
    these environments are different.
When a toolset is successfully
    installed, new environment settings are applied. However, these settings are
    not yet passed to applications that were already active before the toolset
    installation.
  
To get this right, you must restart the application (like a DOS Box, File Explorer, etc.). If the problem persists, simply restart the computer.