The following error might occur while executing java from command prompt

Error:

This installer must be executed using a Java Development Kit (JDK)

but C:\Program Files\Java\jre7 is not a valid JDK.

Issue and Fix

The issue is due to the java is pointing to JRE instead of JDK

Execute the java from the JDK folder like below

c:\Program Files\Java\jdk1.8.0_60\bin\java.exe” -jar “<FILENAME>.jar”

govindan Error: This installer must be executed using a Java Development Kit (JDK)
Connect me

Govind

Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.

Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply 🙂
govindan Error: This installer must be executed using a Java Development Kit (JDK)
Connect me
By | 2016-08-29T19:12:12+00:00 February 13th, 2016|Categories: Java|Tags: |6 Comments
Like us on Facebook.
Connect!