Skip to content

Java versions supported #26

@jhuguetn

Description

@jhuguetn

I have recently upgraded the OS of a machine hosting a CTP service and along with the OS, Java also got updated. Now I am at version 11. Attempting to start CTP as a service I get into the following issue,

Feb  9 13:00:19 XXX systemd[1]: Started CTP Service.
Feb  9 13:00:20 XXX ctp-wrapper.sh[19460]: Starting CTP
Feb  9 13:00:20 XXX ctp-wrapper.sh[19460]: java -Xmx2048m -Xms2048m -Djava.ext.dirs=null -jar libraries/CTP.jar
Feb  9 13:00:20 XXX ctp-wrapper.sh[19460]: stderr: Error: Could not create the Java Virtual Machine.
Feb  9 13:00:20 XXX ctp-wrapper.sh[19460]: stderr: Error: A fatal exception has occurred. Program will exit.
Feb  9 13:00:20 XXX ctp-wrapper.sh[19460]: stderr: exit
Feb  9 13:00:20 XXX ctp-wrapper.sh[19460]: stdout: -Djava.ext.dirs=null is not supported.  Use -classpath instead.
Feb  9 13:00:20 XXX ctp-wrapper.sh[19460]: stdout: exit
Feb  9 13:00:20 XXX ctp-wrapper.sh[19460]: Exit: code 1
Feb  9 13:00:21 XXX ctp-wrapper.sh[19460]: Runner: exit.

Seems like after Java version 8 the command line directive -Djava.ext.dirs was deprecated with the recommendation to use -classpath instead. So CTP command offended Java version 11 and failed to run it as expected.

At this point I see 2 options,
(a) install Java 8 and use it for running CTP
(b) update CTP and see if it takes care of such deprecation and supports newer versions of Java

@johnperry, do latest versions of CTP support Java 9+ or still require Java 8 to run? What would your advice be here?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions