Add new comment

Error under Java 7

I have generated a jar than runs fine on a XP machine with Java 1.7 (last version). But whe I convert it to an exe (especifiying JRE min ver 1.7.x_xxx and the same to max ver) I get the error: "Java Runtime Environment not valid" when i try to execute-it.
I've reinstalled Java several times with same results. I've no problem if I install Java 1.6 (and uninstall 1.7 ver!!!!!) and I generate the .exe  for 1.6 version.