Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed JDK 1.6 on my machine, but I have got the error while starting Irepor that says, "jdk 5 or newer cannot be found on your machine". I have also upgraded the version, and set JAVA_HOME and PATH variables to try to resolve the error. Would someone kindly let me know what I'm missing to get my JDK installed?

share|improve this question

migrated from Dec 9 '12 at 8:19

This question came from our site for professional and enthusiast programmers.

Operating system? – Makoto Dec 8 '12 at 21:23
also what program generates the message "JDK 5.0 or newer could not be found on machine" ? – David Soroko Dec 8 '12 at 21:25
In your development environment (Eclipse, et cetera) or what? – Zéychin Dec 8 '12 at 21:25
I am using windows 7.. – Ruba Mushtaq Dec 8 '12 at 21:26
I was trying to start Ireport though I have set the directory of Java home in conf file. – Ruba Mushtaq Dec 8 '12 at 21:28

on command prompt type

echo %JAVA_HOME%

does it gives the correct name of the directory where JDK is installed?

Which application is giving you this error? Is is iReport mentioned in your last post?

share|improve this answer
The command gives me the correct path of JDK. I need to have jdk to run Ireport. – Ruba Mushtaq Dec 9 '12 at 0:49

I am thankful to all of you trying to help me to resolve the error by different suggestions. Anyhow,I have solved the issue ,and I would like to share the thing that I have done.

  1. As I said before the error was showing when I started Ireport, and the reason was: To start Ireport I needed to install jdk 32 bit version instead of 64 bit version. Though I have 64 bit operating system,but to initialize Ireport jdk 32 bit version was necessary.

  2. I also set the environmental variables which were either not present and were not set in the system. 2.1 Path = C:\Program Files\Java\jdk1.7\bin 2.2 ClassPath = C:\Program Files\Java\jdk1.7\lib (Used to find Java classes) 2.3 Java_home = C:\Program Files\Java\jdk1.7\bin

and I have verified that the commands java -version and javac -version is running fine by installing jdk 64 bit version for 64 bit OS. I hope the answer would be helpful for the community.

Regards, Ruba Mushtaq

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.