Generate PDF : Java not found on Bigsur
I have MacOS bigsur 11.6.2. I am running Generate PDF and it is giving me this error:
Java not found. See if Java 1.8(64-bit) or higher is installed and JAVA_HOME environment variable is also set.
Java installation could not be verified. See output logs for more details.
Failed to generate AIPdf.
I tried starting Robohelp from Terminal. This is my terminal output:
Last login: Wed May 11 13:21:04 on ttys000
Usage: launchctl setenv <<key> <value>, ...>
mayureshvartak@Mayureshs-MacBook-Pro ~ % /Applications/Adobe\ RoboHelp\ 2020/Adobe\ RoboHelp\ 2020.app/Contents/MacOS/Adobe\ RoboHelp\ 2020 ; exit;
(node:919) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined
at /Applications/Adobe RoboHelp 2020/Adobe RoboHelp 2020.app/Contents/Resources/app.asar/staging/offline_app/index.js:2:1141820
at /Applications/Adobe RoboHelp 2020/Adobe RoboHelp 2020.app/Contents/Resources/app.asar/node_modules/find-java-home/dist/index.js:103:21
at step (/Applications/Adobe RoboHelp 2020/Adobe RoboHelp 2020.app/Contents/Resources/app.asar/node_modules/find-java-home/dist/index.js:46:23)
at Object.next (/Applications/Adobe RoboHelp 2020/Adobe RoboHelp 2020.app/Contents/Resources/app.asar/node_modules/find-java-home/dist/index.js:27:53)
at fulfilled (/Applications/Adobe RoboHelp 2020/Adobe RoboHelp 2020.app/Contents/Resources/app.asar/node_modules/find-java-home/dist/index.js:18:58)
(Use `Adobe RoboHelp 2020 --trace-warnings ...` to show where the warning was created)
(node:919) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:919) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:929) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `Adobe RoboHelp 2020 Helper (Renderer) --trace-deprecation ...` to show where the warning was created)
(node:925) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `Adobe RoboHelp 2020 Helper (Renderer) --trace-deprecation ...` to show where the warning was created)
Compilation failed.
Compilation complete.
Compilation failed.
Compilation failed.
This is my Java version:
mayureshvartak@Mayureshs-MacBook-Pro /Applications % java -version
java version "1.8.0_333"
Java(TM) SE Runtime Environment (build 1.8.0_333-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.333-b02, mixed mode)
mayureshvartak@Mayureshs-MacBook-Pro /Applications %
I have also already done this step:
- 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)
