I followed all the steps from this link and still not able to get confluence to start.
https://confluence.atlassian.com/display/DOC/Installing+Confluence+on+Linux+from+Archive+File
OS: Red Hat Enterprise Linux Server release 6.8 (Santiago) echo $JAVA_HOME /usr/lib/jvm/jre-1.8.0-ibm.x86_64/ java -version java version "1.8.0" Java(TM) SE Runtime Environment (build pxa6480sr3fp10-20160720_02(SR3fp10)) IBM J9 VM (build 2.8, JRE 1.8.0 Linux amd64-64 Compressed References 20160719_312156 (JIT enabled, AOT enabled) J9VM - R28_Java8_SR3_20160719_1144_B312156 JIT - tr.r14.java_20160629_120284.01 GC - R28_Java8_SR3_20160719_1144_B312156_CMPRSS J9CL - 20160719_312156) JCL - 20160719_01 based on Oracle jdk8u101-b13 To run Confluence in the foreground, start the server with start-confluence.sh -fg executing as current user If you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide Server startup logs are located in /usr/local/confluence/confluence-6.0.2/logs/catalina.out Using CATALINA_BASE: /usr/local/confluence/confluence-6.0.2 Using CATALINA_HOME: /usr/local/confluence/confluence-6.0.2 Using CATALINA_TMPDIR: /usr/local/confluence/confluence-6.0.2/temp Using JRE_HOME: /usr/lib/jvm/jre-1.8.0-ibm.x86_64/ Using CLASSPATH: /usr/local/confluence/confluence-6.0.2/bin/bootstrap.jar:/usr/local/confluence/confluence-6.0.2/bin/tomcat-juli.jar Using CATALINA_PID: /usr/local/confluence/confluence-6.0.2/work/catalina.pid Existing PID file found during start. Removing/clearing stale PID file. Tomcat started. cat logs/catalina.out JVMJ9VM007E Command-line option unrecognised: -Xloggc:/usr/local/confluence/confluence-6.0.2/logs/gc-2017-01-05_09-31-11.log Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
It seems confluence is not happy with my version of java, do I have to install java from source to make it work?
I'm not sure it's failing on your version of java, more the config, but I'd try a simple change - use the JRE that's bundled with the Confluence install.
Try setting the java_home to blank and restarting Confluence. Hopefully it will then pick up the jre that comes with it. (If not, then try setting it to the jre directory under the Confluence install)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.