Topic
No replies
why-a-duck?
why-a-duck?
1 Post
ACCEPTED ANSWER

Pinned topic webstart jconsole bad package name?

‏2013-04-29T09:52:03Z |

I have a signed jconsole.jar and a webstart definition created thus:
 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
StringBuffer sb = new StringBuffer();
        sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
        sb.append("<jnlp spec=\"1.0+\" codebase=\"http://"+host+":"+port+"/lib/webstart\">");
        sb.append("  <information>");
        sb.append("    <title>JConsole</title>");
        sb.append("    <vendor>JConsole</vendor>");
        sb.append("  </information>");
        sb.append("  <security>");  
        sb.append("    <all-permissions/>");
        sb.append("  </security>");
        sb.append("  <resources>");
        sb.append("    <j2se version=\"1.6+\" />");
        sb.append("    <jar href=\"jconsole.jar\" main=\"true\"/>");
        sb.append("  </resources>");
        sb.append("  <application-desc main-class=\"sun.tools.jconsole.JConsole\">");
        sb.append("    <argument>"+service+"</argument>");
        sb.append("  </application-desc>");
        sb.append("</jnlp>");

Launching from FF browser, I see:

ExitException[ 3]java.lang.SecurityException: Bad package name of main-class

What am I doing wrong and how do I fix?

Thanks.

Lou.