Support Questions

Find answers, ask questions, and share your expertise

Point NiFi to a separate JDK 8

avatar
Expert Contributor

We have a VM with JDK 7 and a number of things depend on it. We are installing NiFi v1.2 but this one is compatible with JDK 8 only. We cannot remove JDK 7 because we cannot risk to break the dependency. Is it possible to install JDK 8 and point NiFi to use this, without changing the JAVA_HOME variable pointing to JDK 7?

1 ACCEPTED SOLUTION

avatar
Master Mentor
@J. D. Bacolod

You can point NiFi directly at the Java 8 java command.

Modify the following line in NiFi's bootstrap.conf file:

# Java command to use when running NiFi
java=java

change:

 java=java

to:

java=<path to JDK 8>/bin/java

Thanks,

Matt

If you find this answer addressed your question, please mark answer as accepted.

View solution in original post

1 REPLY 1

avatar
Master Mentor
@J. D. Bacolod

You can point NiFi directly at the Java 8 java command.

Modify the following line in NiFi's bootstrap.conf file:

# Java command to use when running NiFi
java=java

change:

 java=java

to:

java=<path to JDK 8>/bin/java

Thanks,

Matt

If you find this answer addressed your question, please mark answer as accepted.