Add warning when setting JRE in place of JDK and improve 'fix'


git-svn-id: file:///srv/repos/svn-packages/svn@217738 eb2447ed-0c53-47e4-bac8-5bc4a241df78