Find out what JRE is used to run app in Windows with multiple JREs installed [duplicate]

This question already has answers here:

Use System.getProperty("java.version");

It will return the jvm's version your code is running on. For example 1.8.0_25.

With System.getProperty("java.runtime.version"); you will get the runtime version, e.g. 1.8.0_25-b18


With System.getProperty("java.home"); you can find the installation directory for JRE the VM is running.

You can also get the "java.version" if you prefer.

Here's the reference for other System Properties that may be helpful.


So I found the easiest way to do this is to open task manager and right click the task i want to inspect. Right click and select go to process. After this I can select Properties and then the Details tab. This will show me the version of Java used for this process.


Edit: I am using quartz-2.1.5.jar. Here's the summary of my classes: HttpPollingJob extends PollingJob extends ScheduledJob implements org.quartz.Job Specifically: 1) ScheduledJob implements ...

How I can get the ID of a saved object. please give me an idea. because I am a beginner in grails def saveCandidates(){ def candidate=new Candidates( name: request....

I am trying to run the SimulationStarted class with the moving average strategy in the open source edition of AlgoTrader. When I start the SimulationStarter I get ArrayIndexOutOfBoundsException. I ...

Is it possible to display a web applet inside a java application's window? It would be preferable if you could give an example code, as I am rather newbish with java.