Linked Questions

14 questions linked to/from How to find the JVM version from a program?
1 vote
3 answers
645 views

I'm trying to determine inside an application what is the Java version used to call a JAR. I saw some solutions talking about System.getProperty(java.version), but what if the user have different ...
Alexis Comte's user avatar
1 vote
0 answers
87 views

If using features from Java SE 12, 13 and now 14, how do I know if the end user JRE is capable of running it? Since Java 8 the official Java download page only have something called "Java Version 8" ...
Stig's user avatar
  • 2,115
195 votes
15 answers
221k views

I need to work around a Java bug in JDK 1.5 which was fixed in 1.6. I'm using the following condition: if (System.getProperty("java.version").startsWith("1.5.")) { ... } else { ... } Will ...
list's user avatar
  • 1,963
4 votes
3 answers
13k views

Possible Duplicate: How to know JDK version from within Java code In my java code I want to check jdk version. If it is 1.5 or above than & than only I want to go ahead with further execution. ...
hemu's user avatar
  • 3,271
7 votes
2 answers
7k views

$java -version prints like below java version "1.8.0_40" Java(TM) SE Runtime Environment (build 1.8.0_40-b27) Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode) The info which ...
2 votes
1 answer
15k views

I have read this, but it ain't good enough! What I mean is: when i run java -version I get: java version "1.8.0" Java(TM) SE Runtime Environment (build pxa6480sr3fp20-20161019_02(SR3 FP20)) IBM ...
GhostCat's user avatar
  • 141k
4 votes
1 answer
3k views

There are many providers of OpenJDK, Namely Amazon – Corretto, Azul, IBM, Oracle, RedHat etc. OpenJDK came per-installed with my OS. So, I have no idea regarding my OpenJDK provider. When I Query ...
Ahmad Ismail's user avatar
  • 14.6k
4 votes
1 answer
2k views

I wish to check if a user's Java version is at least 1.8.0_171. I mean that specific iteration or higher, meaning 1.8.0_151, for instance, would not work. I planned to originally use org.apache....
0 votes
2 answers
551 views

I want to create an Executable Jar file that when run, checks the currently installed version of Java on that computer and displays it for the user. I have searched online but in vain, I cannot find ...
XQEWR's user avatar
  • 648
0 votes
0 answers
1k views

Jenkins claims that "This execution happens in the agent JVM", but when I use this script on script console, I see the next result: def proc = 'java -version'.execute() def sout = new ...
3 votes
1 answer
231 views

I have a java application that somehow has a different behavior when launched in windows by double clicking the jar file compared to launching it using the command prompt. The behavior that i'm ...
4 votes
1 answer
169 views

One problem I've noticed when porting reflection code from Java 8 to Java 9+ is that setAccessible() now throws InaccessibleObjectException in addition to SecurityException when before in Java 8 ...
Kitten's user avatar
  • 447
0 votes
1 answer
122 views

I have a web application running on Tomcat and JDK. Is it possible to programmatically identify the JDK version Tomcat is running on, and if yes, how?
simon's user avatar
  • 13k
0 votes
0 answers
89 views

I will develop a Java program for a company where I don't really know whether their IT department will handle things like Java installations correctly, so I would like to ensure that the program I ...
Robert's user avatar
  • 1