![java 1.7.0_101 java 1.7.0_101](https://media.springernature.com/lw785/springer-static/image/chp%3A10.1007%2F978-1-4842-1996-6_21/MediaObjects/314621_5_En_21_Fig4_HTML.jpg)
On the command line, type: sudo apt-get install openjdk-6-jre.
![java 1.7.0_101 java 1.7.0_101](https://media.springernature.com/original/springer-static/image/chp%3A10.1007%2F978-3-030-44289-7_41/MediaObjects/488371_1_En_41_Fig2_HTML.png)
If you want to develop Java programs then install the java-1.7.0-openjdk-devel package. Which causes the comparison check to fail. su -c 'yum install java-1.7.0-openjdk' The java-1.7.0-openjdk package contains just the Java Runtime Environment. JARs can be run using our jPortable Launcher. OpenJDK Runtime Environment (IcedTea 2.6.6) (7u101-2.6.6-0ubuntu0.14.04.1) OpenJDK 64-Bit Server VM (build 24. No Java® runtime environment needs to be installed on the local machine and no admin rights are required. It automatically works with apps in Format like LibreOffice Portable. If you walk through this code with an expected version of java: 1.7.0_72 and an actual version of java: 1.7.0_101, it will create the following two long variables and compare them: jPortable allows you to easily add a Java® runtime environment to your portable device. Return Long.parseLong(actualVersionDigits) >= Long.parseLong(expectedVersionDigits) String expectedVersionDigits = StringUtils.padEnding(StringUtils.getDigitsOnly(expectedVersion), '0', actualVersionDigits.length()) String actualVersionDigits = StringUtils.getDigitsOnly(System.getProperty("java.version"))
![java 1.7.0_101 java 1.7.0_101](https://media.springernature.com/lw685/springer-static/image/art%3A10.1007%2Fs13222-018-00302-7/MediaObjects/13222_2018_302_Fig7_HTML.png)
Public static boolean isJavaVersionAtLeast(String expectedVersion) Java can be obtained from the Oracle Java download page. MinimumSystemRequirementsĪfter looking at the source, it is apparent that the issue is in .lang.SystemUtils when dealing with java revisions which are 3 digits long Consult following posts if you are looking to download and install JDK 1.5, JDK 1.6, JDK 1.7, JDK 1.9 or JDK 1.10.