Trouble Installing on Linux (Java issue)
-
Hi,
I just recently downloaded the .sh file with the intention of installing the application on Ubuntu Linux. As I haven't installed a java on this box, I tried to install the Oracle jre8, but it turns out that it's no longer available for download. Ditto for jre9 and jre10, but I finally got jre11 installed. I then issued the following command:
export INSTALL4J_JAVA_HOME=/usr/lib/jvm/java-11-oracle
which I'm pretty sure is right based on the following command and it's output
$INSTALL4J_JAVA_HOME/bin/java -version
java version "11.0.1" 2018-10-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode)But when I try to run the script I get this error:
No suitable Java Virtual Machine could be found on your system.
The version of the JVM must be 1.8.
Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.Is it possible that I have to be running exactly java 1.8 and not 1.8 or newer? Or am I doing something else wrong?
Thanks in advance!
-
-
@rs1971 said in Trouble Installing on Linux (Java issue):
I tried to install the Oracle jre8, but it turns out that it's no longer available for download.
Don't the Linux Java 8 download files provided here
https://java.com/en/download/manual.jsp
work for you? -
@Panther Oracle only distributes RPM packages which do not work well with Ubuntu.
@rs1971 I'd have assumed that the sh file would install a working java version as well if there's none on the system.
This obviously doesn't seem to work, but the openJDK 8 should work as well.
So simply uninstalling the jdk 11 and runningsudo apt install openjdk-8-jre
should already do the trick. -
@roiex Just for learning purposes: What's the problem with the provided non-RPM files (tar.gz)?
-
Good point, the
.tar.gz
would also work (acts like a zip file, the only difference is that the gz format can only compress a single file and the tar format can only pack a directory into a single file but not compress it), but you'd have to manually set all the configuration up to point to the then extracted folder, which is by far less convenient than running a one-liner bash script -
@roiex Thank you.
-
Thanks guys. I just manually downloaded the jdk8 tar ball and unzipped it and was able to install the application. I'm not sure why the PPA wasn't able to download it. It may be that the link changed when it went into maintenance mode and the PPA wasn't updated. I'm pretty new to Linux administration so there may have been some other more obvious problem that I was missing. In any event, thanks again and time to hit the manual!
-
I'd have assumed that the sh file would install a working java version as well if there's none on the system
I believe the bundled JRE support in the installer only works for Windows x86/x86_64 and macOS.