Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <!--
- ###############################################################################
- #
- # @(#)draw.jnlp 1.6 02/09/11
- #
- # JNLP File for Draw Demo Application
- #
- ###############################################################################
- -->
- <jnlp spec="0.2 1.0"
- codebase="http://java.sun.com/javase/technologies/desktop/javawebstart/apps"
- href="draw.jnlp">
- <information>
- <title>Draw 4 App</title>
- <vendor>Sun Microsystems, Inc.</vendor>
- <homepage href="http://java.sun.com/javase/technologies/desktop/javawebstart/demos.html"/>
- <description>A minimalist drawing application along the lines of Illustrator</description>
- <description kind="short">Draw Demo Short Description</description>
- <icon href="images/draw.jpg"/>
- <offline-allowed/>
- </information>
- <resources>
- <j2se version="1.3+" href="http://java.sun.com/products/autodl/j2se"/>
- <j2se version="1.3+"/>
- <jar href="draw.jar" main="true" download="eager"/>
- </resources>
- <application-desc main-class="Draw"/>
- </jnlp>
- Properties sProp = java.lang.System.getProperties();
- String sVersion = sProp.getProperty("java.version");
- sVersion = sVersion.substring(0, 3);
- Float f = Float.valueOf(sVersion);
- if (f.floatValue() < (float) 1.4) {
- System.out.println("Java version too low ....");
- System.exit(1);
- }
- ...
- var list = deployJava.getJREs();
- var result = "";
- result = list[0];
- for (var i=1; i<list.length; i++)
- {
- result += ", " + list[i];
- }
- document.write("jre version : "+result);
Add Comment
Please, Sign In to add comment