Issue
When trying to publish a PDF output of a project, the process fails, and the PDF is not produced.
Cause
The environment variable JAVA_HOME is NOT set as expected.
Resolution
Pre-requisite
You must Java 64-bit Runtime installed in your machine.
Windows
Note: If you are in a corporate or government environment, or behind a firewall, you must install Java only after consulting your IT department.
Java 8 Update 251, which is the latest update, installs the Java Runtime Environment (JRE) 1.8. Ensure that you install Java 8 Update 251 or a later version. Oracle contains different downloads according to the specification of your machine.
When you install Java, a registry entry gets created that allows Adobe RoboHelp to generate a PDF output. If the Java installation fails to create the registry entry, you must create a system variable.
Note: If you are in a corporate or government environment, or behind a firewall, create the system variable only after consulting your IT department.
Here's how you'll create the system variable:
- Open the Start Search, type in “env”, and click Edit the system environment variables.
- In the System Properties pop-up, click Environment Variables.
- In the System variables section, click New.
- Enter the Variable name as JAVA_HOME.
- In the Variable value field, browse to the location where you've installed Java. For example, C:\Program Files\Java\jre followed by your version number (eg, C:\Program Files\Java\jre1.8.0.251).
macOS
Big Sur
To set JAVA_HOME, follow the steps below:
- From the menu bar in Finder, select Go > Utilities to display a Finder window showing Mac system utilities.
- Double-click on the Terminal application.
- Create/edit the .profile file in the home folder using the command, vim ~/.profile.
- Add this line to the file:
launchctl setenv JAVA_HOME $(/usr/libexec/java_home) - Restart the machine.
- Launch Adobe RoboHelp.
Previous Mac versions
- In the terminal, run the command:
echo export "JAVA_HOME=\$(/usr/libexec/java_home)" >> ~/.bash_profile - Restart the machine.
- Launch Adobe RoboHelp.