Plugins do not work in the applet

This topic has been viewed 3846 times and has 4 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
dimm
Posts: 10
Joined: Wed Apr 04, 2012 4:49 pm

Plugins do not work in the applet

Post by dimm »

Hello,

Goal: make a plugin that works in the applet.
What I also tried :
I edited the calculatewalls plugin to enable toolbar icon. Made the jar. The plugin works fine in the standalone version and the icon appears on the toolbar, but the plugin breaks the applet( .. pluginUrls:"plugins/calculateWalls.jar", .. ).

Is there a plugin that works in the applet? Or explanation how to make it happen?

Btw, learning Java so please include more details if possible.
Thanks in advance
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Plugins do not work in the applet

Post by Puybaret »

I'm going to check if this feature works correctly.
Nevertheless, as applets don't display a menu bar, only plug-ins displaying a button in the tool bar can be used within an applet (the TOOL_BAR property of its plug-in action must be set to Boolean.TRUE), and calculateWalls.jar isn't usable in that case.
Emmanuel Puybaret, Sweet Home 3D creator
dimm
Posts: 10
Joined: Wed Apr 04, 2012 4:49 pm

Re: Plugins do not work in the applet

Post by dimm »

Puybaret, thank you for looking into this.

Here is the error I get in the console. Again the same jar works fine with the stand alone.

Exception in thread "AWT-EventQueue-2" java.lang.LinkageError: loader constraint violation: loader (instance of com/eteks/sweethome3d/tools/ExtensionsClassLoader) previously initiated loading for a different type with name "com/eteks/sweethome3d/plugin/PluginAction"
at java.lang.ClassLoader.defineClass1(Native Method)
......
Sajmmon
Posts: 50
Joined: Wed Nov 10, 2010 10:15 pm
Country: Warsaw, Poland
Contact:

Re: Plugins do not work in the applet

Post by Sajmmon »

Hi,

I dont know if my experience would help, but I was getting the same error when experimenting with JAWS. In my case a piece of code in my plugin worked fine. However, a piece of code that I added to Sweethome SRC in a new package needed to be implicitly stated in:
com.eteks.sweethome3d.SweetHome3DBootstrap
in the list of application packages

Cheers
dimm
Posts: 10
Joined: Wed Apr 04, 2012 4:49 pm

Re: Plugins do not work in the applet

Post by dimm »

Solved. The issue was in the meatware (me). Please delete thread.
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest