Joined: Apr 4, 2012
Post Count: 10
Status:
Offline
Plugins do not work in the applet
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
France
Joined: Nov 7, 2005
Post Count: 9427
Status:
Offline
Re: Plugins do not work in the applet
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_BARproperty 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
Joined: Apr 4, 2012
Post Count: 10
Status:
Offline
Re: Plugins do not work in the applet
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) ......
Poland
Joined: Nov 10, 2010
Post Count: 50
Status:
Offline
Re: Plugins do not work in the applet
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