Regarding your first problem, if you want Java 1.7+, then just say so in your resources. Replace:
<java version="1.5+" initial-heap-size="128M" max-heap-size="256M"/>
with:
<java version="1.7+" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128M" max-heap-size="256M"/>
The href
part will ask the client to download Java 7 if it is still on Java 6 (or less).
I don't know how to solve your second problem.