And Cost
And Cost

Reputation: 95

Java extensible applet

I need to make an extensible applet that will have plugins downloaded from server and included dynamically in my applet. I managed to do this locally without an applet, but when I try to port it to the applet I stumble across some problems

  1. How can I sign my plugins so that it can access resources from client computer?
  2. I have some external libraries thar are used in the applet and in the plugin, how do I manage those libraries so they can be visible to both applet and plugin?

UPDATE I managed to load the jars with a URLClassLoader that has the AppletClassLoader as parent so now the libraries mentioned at point 2 are visible to plugin and applet, the problem that remains is how can i sing my plugins(jars) so that they can access resources on client computer

Upvotes: 1

Views: 75

Answers (2)

And Cost
And Cost

Reputation: 95

I hava managed to accomplish what i wanted by extending the SecurityManagaer according to this post: Signed applet loads signed jar-files using URLClassLoader with security issue

Upvotes: 1

Sergei Chicherin
Sergei Chicherin

Reputation: 2060

Have you considered Java WebStart and jnlp client instead of applet?

For signing you have to use keytool and jarsigner command line utilities in JDK.

The "plugin" concept here not clear to me.

Upvotes: 0

Related Questions