US
Joined: Dec 31, 2020
Post Count: 1
Status:
Offline
Plugin Development
Hello, I downloaded the plugin development library SweetHome3D-6.4.2.jar, moved it to my eclipse-workspace folder, and tried to follow the steps on http://www.sweethome3d.com/pluginDeveloperGuide.jsp. I ran into a problem at creating the first class VolumePlugin because Eclipse is bellyaching about not being able to resolve the com.eteks.sweethome3d.plugin.Plugin class. This is on Catalina with a fresh install of Eclipse. Here is a screen capture of the offense:
in which I also show the Eclipse/About info screen for good measure. As you can see, the library is on the BuildPath. I added it by creating a /lib folder in the project and importing it by "Copy". This is because following the suggested procedure exactly already ran into this same problem the first time around, and then I tried different ways to solve the issue: as an internal library, linked, copied, as an external library, etc. This was just the latest attempt. They all failed.
Anyway, the package in this lib is found and properly enumerated, yet the super class remains unresolved. Perhaps the library should be brought up to agree with latest Eclipse...
Could someone at SH3D recreate this problem and investigate as to why it's happening, please?
France
Joined: Nov 7, 2005
Post Count: 9420
Status:
Offline
Re: Plugin Development
Your screen shot doesn't show the folder in which you stored the file VolumePlugin.java, and the error could come from this. It shows that you placed your class in com.eteks.sweethome3d.plugin package rather than importing the classes of com.eteks.sweethome3d.plugin package. This is not forbidden but it's not a good idea.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
----------------------------------------
[Edit 1 times,
last edit by Puybaret at Jan 1, 2021, 12:09:02 PM]