ERROR: "java 1.8.0_101 was unexpected at this time" when trying to install or uninstall the Tomcat Service
search cancel

ERROR: "java 1.8.0_101 was unexpected at this time" when trying to install or uninstall the Tomcat Service

book

Article ID: 4834

calendar_today

Updated On:

Products

Output Management Web Viewer

Issue/Introduction

Getting message "java 1.8.0_101 was unexpected at this time" when trying to install or uninstall the Tomcat service with Output Management Web Viewer for Windows 12.1

Environment

  • Apache Tomcat®
  • Java
  • Output Management Web Viewer 12.1

Cause

The JAVA_HOME OR JAVA_JRE System Environment variable was set incorrectly or not set at all

Resolution

  1. Determine if you have the Java jre (Java runtime) or the jdk (Java Development Kit).  Either will work. 
  2. Set the JRE_HOME or JAVA_HOME variable to point to the path for the jre in the system variables, for example:
    JRE_HOME=C:\Program~1\Java\jre1.8.0_101
    or
    JAVA_HOME=C:\Program~1\Java\jre1.8.0_101 

 To permanently change a System Environment variable setting:   (This may vary according to Microsoft Operating System level)

  1. Select the 'System' icon from the Windows control panel
  2. Select the 'Advanced System Settings'
  3. Select the 'Environment Variables' option
  4. To modify an existing variable, find and change that variables current value by selecting 'Edit'   or
  5. To create a new system variable entry, select 'New' and enter the applicable variable name and value
  6. Select 'Apply' to save these changes
  7. Reboot the system.

Additional Information

In most cases these variables are set automatically when JAVA is installed, but in certain cases the variables will need to be added or modified