|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: error with plug-ins eclipse |
|
| Print at Dec 19, 2025, 7:25:38 AM | |
| Posted by white0demon at Aug 24, 2010, 12:59:21 PM |
error with plug-ins eclipseI 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=detail&a...d=152568&atid=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. |
| Posted by Puybaret at Aug 24, 2010, 1:10:36 PM |
|
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 |
| Posted by white0demon at Aug 24, 2010, 1:24:45 PM |
|
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? |
| Posted by Puybaret at Aug 24, 2010, 1:36:41 PM |
|
Re: error with plug-ins eclipse What main class do you run? ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by white0demon at Aug 24, 2010, 1:51:27 PM |
|
Re: error with plug-ins eclipse com.eteks.sweethome3d.SweetHome3DBootstrap |
| Posted by Puybaret at Aug 24, 2010, 3:55:22 PM |
|
Re: error with plug-ins eclipse Try com.eteks.sweethome3d.SweetHome3D class it should work better! ![]() ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by white0demon at Aug 24, 2010, 5:03:16 PM |
|
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. |
| Posted by Puybaret at Aug 24, 2010, 5:22:42 PM |
|
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 |
| Posted by white0demon at Aug 24, 2010, 6:21:57 PM |
|
Re: error with plug-ins eclipse Any idea why this might be happening though? ![]() |
| Posted by white0demon at Aug 24, 2010, 11:30:24 PM |
|
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? ![]() |
| Posted by white0demon at Aug 25, 2010, 12:24:39 AM |
|
Re: error with plug-ins eclipse Just checking, what are all the properties for the jar export? |
| Posted by msk at Aug 19, 2014, 3:51:33 PM |
|
Re: error with plug-ins eclipse Have the same problem. My plugin: public class TestPlugin extends com.eteks.sweethome3d.plugin.Plugin { @Override public PluginAction[] getActions() { return new PluginAction[]{new TestAction()}; } } Application output: Invalid plug-in jar:file:/home/msk/.eteks/sweethome3d/plugins/sh3d_mirror_plugin.jar!/ApplicationPlugin.properties: msk.test.TestPlugin not a subclass of com.eteks.sweethome3d.plugin.Plugin |
| Posted by Puybaret at Aug 19, 2014, 6:16:55 PM |
|
Re: error with plug-ins eclipse How do you launch Sweet Home 3D? Did you check that sh3d_mirror_plugin.jar is the only plug-in in /home/msk/.eteks/sweethome3d/plugins/ folder? Did you check its date? ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by msk at Aug 19, 2014, 6:42:57 PM |
|
Re: error with plug-ins eclipse Yes it is. I tried to check if it is not a JDK version mismatch problem so I completely removed JDK7, installed JDK6, so my generated class is the same version as (for example) class from "Advanced Editing Plugin" - 32 hex = jdk 1.6. Plugin still rejected, both on linux(64bit) and windows (64bit). Dunno what to do now ... |
| Posted by msk at Aug 19, 2014, 6:45:31 PM |
|
Re: error with plug-ins eclipse ... I run it from within IDEA ide, using ...Bootstrap... main class, jar is copied manually into plugins folder. |
| Posted by msk at Aug 19, 2014, 6:52:25 PM |
|
Re: error with plug-ins eclipse OK, it should be a some weird problem within IDE, because I tried to start locally installed sh3d (using windows installer) and plugin was loaded (I see meny entry). But what to do now. I need to debug the plugin :D ... |
| Posted by msk at Aug 19, 2014, 7:01:48 PM |
|
Re: error with plug-ins eclipse Yes, it's IDEA problem. When IDEA is executing project (in debug mode), commandline looks like: C:\Program Files\Java\jdk1.6.0_38\bin\java" -Dvisualvm.id=4187372098827 -Didea.launcher.port=7536 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.6.0_38\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.6.0_38\jre\lib\ext\sunjce_provider.jar;C:\Program FilesJavajdk1.6.0_38jrelibextsunmscapi.jar;C:Usersmsktmpuntitledoutproductionuntitled;C :\Users\msk\tmp\untitled\lib\SweetHome3D-4.4.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.0.1\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain com.eteks.sweethome3d.SweetHome3DBootstrap When I removed all that additional jars and only sh3d.jar remained, plugin was loaded successfully. I'll try to find which library will break it, maybe some custom classloaders are used there ... Thx and sry for mistake. |
| Posted by rbversace at Apr 19, 2022, 2:38:33 PM |
|
Re: error with plug-ins eclipse I have the same problem using the debugger for volume example project: Invalid plug-in jar:file:/C:/Users/user/Application%20Data/eTeks/Sweet%20Home%203D/plugins/VolumePlugin.sh3p!/com%2Feteks%2Ftest%2FApplicationPlugin.properties: com.eteks.test.VolumePlugin not a subclass of com.eteks.sweethome3d.plugin.Plugin If copy the JAR on plugin folder the plugin work properly. How can I resolve the problem and how can I use the dubegger? Thanks RV |
| Posted by Puybaret at Apr 19, 2022, 7:00:15 PM |
|
Re: error with plug-ins eclipse Using the debugger is explained in the plug-in developer guide but I don't think you need it. The reported error suggests that you should check the super class of your com.eteks.test.VolumePlugin class. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
|
|
Current timezone is GMT Dec 19, 2025, 7:25:38 AM |