Customer Portal

ComplexDataReader Java Issue

Comments 6

  • Avatar
    krizovav
    0
    Comment actions Permalink
    Hi,

    Try to use JDK instead of JRE, please. The JRE is useful only for running Java applications. It doesn’t contain the compiler. That’s why we recommend to use JDK.

    For more information about the difference between JDK and JRE, click here, please.


    Regards,
  • Avatar
    dflkid
    0
    Comment actions Permalink
    So use the JDK on my Mac and the Server? How do I ensure that Clover uses this new JDK installation?
  • Avatar
    krizovav
    0
    Comment actions Permalink
    Hi,

    There are several possibilities how to solve this task.

    In Designer:
    The Clover Designer uses the bundled JDK by default. If you would like the Designer to use any other one, you can download the Oracle JDK for Mac here.
    This Java instance is installed to /Library/Java by default.
    Please note, that there is two-step configuration necessary in this case.
    1. Add new JDK in Preferences/Java/Installed JREs. Check the documentation.
    2. Set the Preferences/CloverETL/ETL Runtime/Java Runtime Environment (JRE) to Alternate JRE and choose the new one. Check the documentation.

    In Clover Server:
    The path to the JDK for the Clover Server is configured in the „[tomcat]/bin/setenv.sh“ file for Unix-like systems or the „[tomcat]/bin/setenv.bat“ for Windows system. Check the documentation.

    If you run the Server on the same machine as the Designer, you can set the path to the JDK used by the Designer. If not, copy or download the same JDK and save it in a place where the Clover Server will be able to use it, please.

    I hope this helps.
    Regards,
  • Avatar
    dflkid
    0
    Comment actions Permalink
    I'm still having trouble getting this to work. I looked at the documentation and tried the echo command for JAVA_HOME and JRE_HOME on the server and they don't return anything. Is it possible to not have java_home configured and Clover Server still works, or is that just required to use components like ComplexDataReader?

    Andrew
  • Avatar
    Pedro Vazquez Rosario
    0
    Comment actions Permalink
    Hi dflkid,

    Our sales team will look to contact you directly and go over next steps to be able to resolve your issue.

    Thank You,
  • Avatar
    svecp
    0
    Comment actions Permalink
    Well, if you set JAVA_HOME to setenv.sh file and echo $JAVA_HOME, you will not see any output since whenever startup.sh is executed, it starts in a new terminal session.

    If you'd like to add it globally, at least on a Linux machine, you'd need to add it into /etc/profile.d directory or /etc/profile file. Not sure how it works on Mac though. Important thing to keep in mind, after doing that, it is necessary to open a new terminal session in order to get change applied.

Please sign in to leave a comment.