sad error with plug-ins eclipse

This topic has been viewed 20251 times and has 18 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
white0demon
Posts: 13
Joined: Fri Aug 20, 2010 11:06 am

error with plug-ins eclipse

Post by white0demon »

I was trying to create a plug-in and followed the tutorial http://www.sweethome3d.com/pluginDeveloperGuide.jsp

I was getting an error with the plug-in I was trying to create so I downloaded this plug-in http://sourceforge.net/tracker/?func=de ... id=1127349 since it is for sure working and got the same error.

The error is:

Invalid plug-in jar:file:/C:/Users/username/Application%20Data/eTeks/Sweet%20Home%203D/plugins/RotateHomePlugin.jar!/org%2Faddy%2Fsh3d%2Fplugin%2FApplicationPlugin.properties:
org.addy.sh3d.plugin.RotateHomePlugin not a subclass of com.eteks.sweethome3d.plugin.Plugin

Invalid plug-in jar:file:/C:/Users/username/Application%20Data/eTeks/Sweet%20Home%203D/plugins/CopyStylePlugin.jar!/newPlugin%2FApplicationPlugin.properties:
newPlugin.CopyStyleAction not a subclass of com.eteks.sweethome3d.plugin.Plugin

I don't understand what could be wrong, although it might be something stupid, any ideas?

It's the first time I'm trying to develop a plug-in so it could be something easy I didn't notice.

If any part of the code is needed (or any other information) I can post it, but right now I only have a message box to appear in the execute and nothing more, everything else is according to the tutorial.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: error with plug-ins eclipse

Post by Puybaret »

Are you sure CopyStyleAction extends Plugin and that you imported com.eteks.sweethome3d.plugin.Plugin (not a Plugin class of an other package)?
Emmanuel Puybaret, Sweet Home 3D creator
white0demon
Posts: 13
Joined: Fri Aug 20, 2010 11:06 am

Re: error with plug-ins eclipse

Post by white0demon »

import com.eteks.sweethome3d.plugin.Plugin;

Yeah I think I'm sure. Even if I had it wrong in my plug-in wouldn't it work in the rotate home plug-in?
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: error with plug-ins eclipse

Post by Puybaret »

What main class do you run?
Emmanuel Puybaret, Sweet Home 3D creator
white0demon
Posts: 13
Joined: Fri Aug 20, 2010 11:06 am

Re: error with plug-ins eclipse

Post by white0demon »

com.eteks.sweethome3d.SweetHome3DBootstrap
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: error with plug-ins eclipse

Post by Puybaret »

Try com.eteks.sweethome3d.SweetHome3D class it should work better! [;)]
Emmanuel Puybaret, Sweet Home 3D creator
white0demon
Posts: 13
Joined: Fri Aug 20, 2010 11:06 am

Re: error with plug-ins eclipse

Post by white0demon »

Gives the following error (reason I thought it wasn't this one):

Could not find main class: com.eteks.sweethome3d.SweetHome3D.
Program will exit.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: error with plug-ins eclipse

Post by Puybaret »

Hum... I'm ok to help but if you're not able to launch com.eteks.sweethome3d.SweetHome3D class, this won't make it... [:(]
Emmanuel Puybaret, Sweet Home 3D creator
white0demon
Posts: 13
Joined: Fri Aug 20, 2010 11:06 am

Re: error with plug-ins eclipse

Post by white0demon »

Any idea why this might be happening though? [:-/]
white0demon
Posts: 13
Joined: Fri Aug 20, 2010 11:06 am

Re: error with plug-ins eclipse

Post by white0demon »

When I have bootstrap as main class it launches sweet home just not with any plug-in and gives the error I wrote at the first post. This gives any valuable information? [:-/]
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest