How can I determine java version installed on a system through java code, if its not latest then download and install the required jre?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The first question is easy, use
System.getPropertyto getjava.version:The second part, I would instead show the user a popup dialog and ask him to download the latest (or required) version from Oracle (or some other source).