Skip to main content
davidk99046111
Inspiring
February 4, 2021
Answered

PDF - JAVA Not Found after upgrading to Big Sur

  • February 4, 2021
  • 2 replies
  • 672 views

Has anyone run into this issue?  After upgrading the big sur, i am getting the java not found error when trying to generate a PDF.

Doing a 

/usr/libexec/java_home 

command in the terminal shows that the mac can see java.  I have tried reinstalling java, removing and reinstalling etc - no change.  The PDF process was working fine prior to upgrading the OS. 

I am on RH 2020.3.36

    This topic has been closed for replies.
    Correct answer MayankGupta

    Hi David,

    The issue is with Java home variable not being set globally. This is happening due to how BigSur now handles Java home variable. For now, if the steps suggested by Peter doesn't work, you can try launching Robohelp.exe from terminal and that should solve the PDF generation issue. Otherwise, since it's a weekend, I will get back to you with a proper fix in couple of days.

    Regards,

    Mayank Gupta

    2 replies

    MayankGuptaCorrect answer
    Adobe Employee
    February 6, 2021

    Hi David,

    The issue is with Java home variable not being set globally. This is happening due to how BigSur now handles Java home variable. For now, if the steps suggested by Peter doesn't work, you can try launching Robohelp.exe from terminal and that should solve the PDF generation issue. Otherwise, since it's a weekend, I will get back to you with a proper fix in couple of days.

    Regards,

    Mayank Gupta

    davidk99046111
    Inspiring
    February 7, 2021

    Mayank, opening RH via terminal worked perfectly!  Thank you for your time (and patience) on Friday.  This workaround will allow me to keep working until this can be addressed.  Thank you again. 

    Peter Grainge
    Community Expert
    Community Expert
    February 4, 2021

    First have you applied Update 3, that is essential on Mac machines.

     

    If you have, see if this helps.

     

    To set JAVA_HOME on BigSur

    1. From the menu bar in Finder, select Go > Utilities to display a Finder window showing Mac system utilities.

    2. Double-click on the Terminal application.

    3. Create/edit the .profile file in the home folder using the command vim ~/.profile
    4. Add this line to the file
      launchctl setenv JAVA_HOME $(/usr/libexec/java_home)
    5. Reboot the machine.
    6. Launch RH.

    ________________________________________________________
    See www.grainge.org for free Authoring and RoboHelp Information

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    davidk99046111
    Inspiring
    February 4, 2021

    Hi Peter,

    Thank you for the quick response.  Yes, i upgraded to update 3 prior to upgrading the OS and tested everything (rh ui, building web and print output etc) - it all worked as expected.

    I did the steps you listed above and I am still encountering the same issue upon reboot.  

    While i was doing this, a co-worker did a fresh install of RH (update 3 version) on a new environment with big sur.  After installing java, he encountered the same java not found issue when trying to generate a PDF from the sample project file provided.   

    Community Manager
    February 5, 2021

    Hi David,

     

    I have sent you an email regarding this issue. We can connect to check the issue at your end.

     

    Regards,

    Mayank