Linked Questions
14 questions linked to/from How to find the JVM version from a program?
1
vote
3
answers
645
views
Determine java version used to call a program [duplicate]
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 ...
1
vote
0
answers
87
views
Java SE version vs officiel JRE donwload version [duplicate]
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
Getting Java version at runtime
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
Java: How to check jdk version? [duplicate]
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
How to get java version programmatically with update information
$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
How to find the JVM version from a program ... with even more details?
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 ...
4
votes
1
answer
3k
views
How do I find details about the OpenJDK Provider from Command Line
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 ...
4
votes
1
answer
2k
views
Check if a Java version is greater than a certain iteration in Java?
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
How do I check a clients Java Version?
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 ...
0
votes
0
answers
1k
views
What jvm is actually used on jenkins script console?
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
Why behavior for Java application different when double clicked and command prompt
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
Writing forwards-compatible code when an API introduces a new exception type
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 ...
0
votes
1
answer
122
views
Programmatically identifying JDK version of Tomcat
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?
0
votes
0
answers
89
views
How to ensure my Java program does not use the Oracle JVM?
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 ...