Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #34124
| From | Nigel Wade <nmw@ion.le.ac.uk> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Java 1.8 and CentOS |
| Date | 2016-04-13 15:42 +0100 |
| Message-ID | <dn745sFpbh0U1@mid.individual.net> (permalink) |
| References | <neljen$psq$1@dont-email.me> |
On 13/04/16 15:04, Duncan Idaho wrote: > > 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 What is actually in /opt/jdk1.8.0_77 on the CentOS system? > > [root@vps logs]# java -version > java version "1.8.0_77" > Java(TM) SE Runtime Environment (build 1.8.0_77-b03) > Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode) > > [root@vps logs]# echo $PATH > /usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/lyallex/.local/bin:/home/lyallex/bin:/opt/jdk1.8.0_77/bin > > So the vm is there on the path. > But not necessarily in /opt/jdk1.8.0_77/bin. /opt/jdk1.8.0_77/bin is on the PATH, but not necessarily being used to locate java. Try: $ which java and follow the links to the actual executable.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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