First time here? Check out the FAQ!
For this trick worked: Find the file info.plist in "/Library/Java/JavaVirtualMachines/your-JRE/Contents add to info.pl