How to resolve " Could not locate Java Virtual Machine" error while executing Spotfire Statistica data function in Spotfire.

How to resolve " Could not locate Java Virtual Machine" error while executing Spotfire Statistica data function in Spotfire.

book

Article ID: KB0138157

calendar_today

Updated On:

Products Versions
Spotfire Data Science - Statistica 14.x

Description

The error is shown below:

image.png

 

Environment

Windows (OS)

Resolution

Steps to Resolve:

  1. Remove all java in System Path.

  2. Set JAVA_HOME to C:\Program Files\Spotfire\Statistica\java\jre, which is the java folder in Statistica installation directory.

    Open Environment VariablesAdvanced → set a new System Variable, add the path
    (C:\Program Files\Spotfire\Statistica\java\jre) Click OK.



    image.png

    The system variable appears as follows:

    image.png

     
  3. After setting the environment variable, execute the Statistica data function again, and the error will no longer occur.


    NOTE

    Apart from the "Could not locate Java Virtual Machine" error, if the following error is encountered while executing the Statistica data function, please follow the same steps mentioned above to resolve it.


    image.png

Issue/Introduction

While executing SANN Regression (Rapid Deployment Model) in Spotfire, the error "Could not locate Java Virtual Machine" may sometimes occur. To resolve this error, please follow the steps below: