Java™ requirements, options, and settings for Teracloud® Streams
Ensure that you use a Java™ development kit that is supported by Teracloud® Streams. If Java™ memory issues occur, Teracloud® Streams provides configuration properties that you can use to allocate more memory for the Java™ environment.
Java SDK 17 or later must be installed before running Teracloud® Streams.
You are recommended to install OpenJDK via RPM. Then, use alternatives to set the current active Java. Alternatives sets up a symlink to the latest (current) active java: /etc/alternatives/java_sdk. To make it easier to upgrade to a newer version of Java™, use a symlink for the Java location.
Teracloud® Streams is using a new environment variable STREAMS_JAVA_HOME for identifying the Java location on your system. This variable can be set automatically by the Streams profile script or specified explicitly before running the script. If you set this environment variable manually, you are recommended to set it to a symlink that does not contain the Java version. This will make it easier to upgrade to a newer version of Java.
Installing OpenJDK 17 and updating alternatives
dnf install java-17-openjdk-devel
java
and javac
, you must
update the javac
alternative. It is also recommended to update the
java
alternative as well. To do so, use the following
commands:update-alternatives --config 'javac'
update-alternatives --config 'java'
Setting alternatives to designate active java (without OpenJDK)
If you are not using OpenJDK, it is recommended to use alternatives to designate active java. Otherwise, you must explicitly set the STREAMS_JAVA_HOME environment variable. It is recommended to set it to a symlink to make upgrading Java to a newer version easier.
javac
is set
correctly:$ javac -version
javac 17.0.11