Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 2
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 4040 times and has 1 reply Next Thread
Sanyiman
Newbie



US
Joined: Dec 31, 2020
Post Count: 1
Status: Offline
Reply to this Post  Reply with Quote 
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:

https://drive.google.com/file/d/1ZbZBR-aWS6U0...BQ_FuViZ/view?usp=sharing

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?

Thanks a bunch.
[Dec 31, 2020, 2:52:05 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
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 developer
----------------------------------------
[Edit 1 times, last edit by Puybaret at Jan 1, 2021, 12:09:02 PM]
[Jan 1, 2021, 10:17:34 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved