I am new to Openshift and I created a server instance using the Tomcat 7 cartridge (JBoss EWS 2.0) for my spring download web application.
Originally, the web application used JDK7 and worked great in Openshift. Now, for some improvement, we need to switch to JDK8.
I tried a google search about changing JAVA_HOME in JDK8, and I tried most of the solutions, but I can't get it to work.
Trial Solution 1 . A start file has been created under app-root/runtime/repo/.openshift/action_hooks/ with the contents below.
#!/bin/bash export JAVA_HOME=/etc/alternatives/java_sdk_1.8.0 export PATH=$JAVA_HOME:$PATH
In addition, the file has a resolution of +x .
Trial Solution 2 . A java8 token was java8 under app-root/runtime/repo/.openshift/markers and jbossews/template/.openshift/markers .
The above solutions do not work. Another option is a DIY cartridge, which may work, but I do not want to create a new application and move everything there.
EDIT
Below is the directory structure
Directory structure
Note that I created this application using the open UI offset and not using the rhc command.
I beg you, please.
thanks
source share