diff options
Diffstat (limited to 'netx/net/sourceforge/jnlp')
-rw-r--r-- | netx/net/sourceforge/jnlp/resources/about.jnlp | 7 | ||||
-rw-r--r-- | netx/net/sourceforge/jnlp/runtime/Boot.java | 15 |
2 files changed, 15 insertions, 7 deletions
diff --git a/netx/net/sourceforge/jnlp/resources/about.jnlp b/netx/net/sourceforge/jnlp/resources/about.jnlp index e5bf1e1..44763b6 100644 --- a/netx/net/sourceforge/jnlp/resources/about.jnlp +++ b/netx/net/sourceforge/jnlp/resources/about.jnlp @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?>
-<jnlp spec="1.0" href="about.jnlp" codebase="http://icedtea.classpath.org/netx/">
+<jnlp spec="1.0" href="about.jnlp" codebase=".">
<information>
<title>About window for NetX</title>
<vendor>NetX</vendor>
@@ -11,10 +11,7 @@ <j2se version="1.4+"/>
<jar href="about.jar"/>
</resources>
- <security>
- <all-permissions/>
- </security>
- <application-desc main-class="net.sourceforge.jnlp.about.Main">
+ <application-desc main-class="net.sourceforge.javaws.about.Main">
</application-desc>
</jnlp>
diff --git a/netx/net/sourceforge/jnlp/runtime/Boot.java b/netx/net/sourceforge/jnlp/runtime/Boot.java index edf8f8c..1db5296 100644 --- a/netx/net/sourceforge/jnlp/runtime/Boot.java +++ b/netx/net/sourceforge/jnlp/runtime/Boot.java @@ -218,8 +218,19 @@ public final class Boot implements PrivilegedAction<Void> { cl = ClassLoader.getSystemClassLoader(); } try { - return cl.getResource("net/sourceforge/jnlp/resources/about.jnlp").toString(); - } catch (Exception e) { + //extracts full path to about.jnlp + String s = cl.getResource("net/sourceforge/jnlp/runtime/Boot.class").toString(); + s=s.substring(0,s.indexOf("!")); + s=s.substring(s.indexOf(":")+1); + s=s.substring(s.indexOf(":")+1); + s="file://"+s.replace("netx.jar","about.jnlp"); + if (JNLPRuntime.isDebug()){ + System.out.println("Using " + s + " as about.jnlp URL"); + } + + return s; + } catch (Exception e) { + e.printStackTrace(); return null; } } |