error with plug-ins eclipse
This topic has been viewed 20251 times and has 18 replies
-
white0demon
- Posts: 13
- Joined: Fri Aug 20, 2010 11:06 am
error with plug-ins eclipse
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.
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.
Re: error with plug-ins eclipse
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
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?
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?
Re: error with plug-ins eclipse
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
com.eteks.sweethome3d.SweetHome3DBootstrap
Re: error with plug-ins eclipse
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
Gives the following error (reason I thought it wasn't this one):
Could not find main class: com.eteks.sweethome3d.SweetHome3D.
Program will exit.
Could not find main class: com.eteks.sweethome3d.SweetHome3D.
Program will exit.
Re: error with plug-ins eclipse
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
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
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? [:-/]
Who is online
Users browsing this forum: No registered users and 1 guest