Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #34127

Re: Java 1.8 and CentOS

From Andreas Leitgeb <avl@logic.at>
Newsgroups comp.lang.java.programmer
Subject Re: Java 1.8 and CentOS
Date 2016-04-13 17:29 +0000
Organization A noiseless patient Spider
Message-ID <slrnngt0mk.456.avl@login.logic.tuwien.ac.at> (permalink)
References <neljen$psq$1@dont-email.me>

Show all headers | View raw


Duncan Idaho <duncan@dunenoemail.com> wrote:
> Each system has the following identical setup
> /opt/apache-tomcat-7.0.42
> /opt/jdk1.7.0_45
> /opt/jdk1.8.0_77
> /etc/rc.d/init.d/tomcat7
> This script starts tomcat as a unix daemon using jsvc
> At the start of the script I set the version.
> JAVA_HOME=/opt/jdk1.7.0_45
> /etc/rc.d/init.d/tomcat7 start
> and tomcat runs like a top on both systems
> I then change the script thusly
> JAVA_HOME=/opt/jdk1.8.0_77
> invoking the script on Ubuntu starts the server
> invoking the script on CentOS results in the following error message
> Cannot find any VM in Java Home /opt/jdk1.8.0_77
> Cannot locate JVM library file

You can try to run yor scripts in a specific shell like e.g.
that:   bash -x /opt/apache-tomcat-7.0.42/bin/startup.sh 
It should then tell you everything that happened in this script.

>     $CATALINA_HOME/bin/jsvc -user $TOMCAT_USER -home $JAVA_HOME

My somewhat older tomcat here doesn't yet have a "jsvc" in its bin,
so I can't tell if that is a script itself or a native binary...

If it is a script, then try the bash -x prefix also on that.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Java 1.8 and CentOS Duncan Idaho <duncan@dunenoemail.com> - 2016-04-13 15:04 +0100
  Re: Java 1.8 and CentOS Nigel Wade <nmw@ion.le.ac.uk> - 2016-04-13 15:42 +0100
    Re: Java 1.8 and CentOS Duncan Idaho <duncan@dunenoemail.com> - 2016-04-13 17:33 +0100
  Re: Java 1.8 and CentOS Andreas Leitgeb <avl@logic.at> - 2016-04-13 17:29 +0000
    Re: Java 1.8 and CentOS Andreas Leitgeb <avl@logic.at> - 2016-04-13 18:14 +0000
      Re: Java 1.8 and CentOS Duncan Idaho <duncan@dunenoemail.com> - 2016-04-14 05:18 +0100
        Re: Java 1.8 and CentOS Andreas Leitgeb <avl@logic.at> - 2016-04-14 10:44 +0000
  Re: Java 1.8 and CentOS Roedy Green <inquiry@mindprod.com> - 2016-07-17 11:56 -0700

csiph-web