In version 2.4.1, the [font=courier new]com.eteks.sweethome3d.plugin.yafarayrendering[/font] package containing the YafarayRenderer.java file is used to load the necessary DLLs.
In Sweet Home 3D 7.0, the YafarayRenderer.java file (subclass of AbstractPhotoRenderer) is contained in the [font=courier new]com.eteks.sweethome3d.j3d[/font] package.
By not including the [font=courier new]com.eteks.sweethome3d.plugin.yafarayrendering[/font] package in the plug-in and by using the new loading of the DLLs of the file YafarayRenderer.java of SH3D-7.0, we have the error above.
By opening the default photo panel first, the error returned is:
Code: Select all
java.lang.UnsatisfiedLinkError: Native Library C:\Users\user\AppData\Local\Temp\com.eteks.sweethome3d.SweetHome3D-cache-yafaray-64-43014161-1659389236\libwinpthread-1.dll already loaded in another classloader
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.eteks.sweethome3d.j3d.AdvancedYafarayRenderer.<clinit>(AdvancedYafarayRenderer.java:248)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.eteks.sweethome3d.j3d.AdvancedAbstractPhotoRenderer.createInstance(AdvancedAbstractPhotoRenderer.java:95)
Is it better to use the DLLs present in
lib/yafaray of SweetHome3D-7.0 or in
com/eteks/swethome3d/plugin/yafarayrendering/lib of the YafarayRendering-1.4.5 plugin?