This article describes an issue when Studio will not start when an unsupported version of Java is detected.
- DataStax Studio 6.0
- DataStax Studio 6.7
When the Studio is started, the start script fails and an error message like this is returned:
Studio 6.0 requires Java 8. Java 10 is not supported.
Studio checks the JAVA_HOME environment variable at startup. JAVA_HOME and
-version might point to different java installations.
Note that even when the
java -version command shows a supported Java version, it is possible that the JAVA_HOME environment variable is not set to the correct Java installation directory.
To ensure that Studio starts with the correct version of Java, make sure the JAVA_HOME environment variable points to the installation directory with the supported version of Java.
1. Ensure a supported Java version is installed:
$ java -version
2. To set JAVA_HOME, run the following commands:
$ setenv JAVA_HOME <java-install-dir> $ setenv PATH $JAVA_HOME/bin:$PATH $ export PATH=$JAVA_HOME/bin:$PATH