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: 3
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 1080 times and has 2 replies Next Thread
Dennisek
Newbie



Germany
Joined: Oct 27, 2022
Post Count: 4
Status: Offline
Reply to this Post  Reply with Quote 
home 3D view not working when executing the JAR file

Hello guys, I just recently discovered Sweet Home 3D. The program seems to be working fine when I execute the file SweetHome3D (Linux) but when I execute the JAR file then the home 3D view (the down right screen) is not working. Since I want to create plugins I am interested in being able to have a functioning JAR version of Sweet Home 3D.

When I execute the JAR file I get the following messages on the command line:

Caught AppContextInfo(Bug 1004) InaccessibleObjectException: Unable to make public static sun.awt.AppContext sun.awt.AppContext.getAppContext() accessible: module java.desktop does not "exports sun.awt" to unnamed module @5eb5c224 on thread J3D-Renderer-1 [0]: java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) [1]: java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) [2]: java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:200) [3]: java.base/java.lang.reflect.Method.setAccessible(Method.java:194) [4]: com.jogamp.nativewindow.awt.AppContextInfo$1$1.run(AppContextInfo.java:40) [5]: com.jogamp.common.util.UnsafeUtil.doWithoutIllegalAccessLogger(UnsafeUtil.java:219) [6]: com.jogamp.nativewindow.awt.AppContextInfo$1.run(AppContextInfo.java:34) [7]: java.base/java.security.AccessController.doPrivileged(AccessController.java:318) [8]: com.jogamp.nativewindow.awt.AppContextInfo.<clinit>(AppContextInfo.java:31) [9]: com.jogamp.nativewindow.awt.JAWTWindow.<init>(JAWTWindow.java:128) [10]: jogamp.nativewindow.jawt.x11.X11JAWTWindow.<init>(X11JAWTWindow.java:60) [11]: java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.jav
a:67) [12]: java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [13]: java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:483) [14]: jogamp.nativewindow.NativeWindowFactoryImpl.getAWTNativeWindow(NativeWindowFactoryImpl.java:105) [15]: jogamp.nativewindow.NativeWindowFactoryImpl.getNativeWindowImpl(NativeWindowFactoryImpl.java:66) [16]: com.jogamp.nativewindow.NativeWindowFactory.getNativeWindow(NativeWindowFactory.java:654) [17]: javax.media.j3d.JoglPipeline$QueryCanvas.addNotify(JoglPipeline.java:8604) [18]: java.desktop/java.awt.Container.addNotify(Container.java:2804) [19]: java.desktop/java.awt.Window.addNotify(Window.java:791) [20]: java.desktop/java.awt.Frame.addNotify(Frame.java:495) [21]: java.desktop/java.awt.Window.show(Window.java:1053) [22]: java.desktop/java.awt.Component.show(Component.java:1729) [23]: java.desktop/java.awt.Component.setVisible(Component.java:1676) [24]: java.desktop/java.awt.Window.setVisible(Window.java:1036) [25]: javax.media.j3d.JoglPipeline.getBestConfiguration(JoglPipeline.java:8379) [26]: javax.media.j3d.Renderer.doWork(Renderer.java:496) [27]: javax.media.j3d.J3dThread.run(J3dThread.java:271) Caught AppContextInfo(Bug 1004) IllegalAccessException: class com.jogamp.nativewindow.awt.AppContextInfo cannot access class sun.awt.AppContext (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @5eb5c224 on thread J3D-Renderer-1 [0]: java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:394) [1]: java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:674) [2]: java.base/java.lang.reflect.Method.invoke(Method.java:568) [3]: com.jogamp.nativewindow.awt.AppContextInfo.fetchAppContext(AppContextInfo.java:191) [4]: com.jogamp.nativewindow.awt.AppContextInfo.update(AppContextInfo.java:135) [5]: com.jogamp.nativewindow.awt.AppContextInfo.<init>(AppContextInfo.java:50) [6]: com.jogamp.nativewindow.awt.JAWTWindow.<init>(JAWTWindow.java:128) [7]: jogamp.nativewindow.jawt.x11.X11JAWTWindow.<init>(X11JAWTWindow.java:60) [8]: java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.jav
a:67) [9]: java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) [10]: java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:483) [11]: jogamp.nativewindow.NativeWindowFactoryImpl.getAWTNativeWindow(NativeWindowFactoryImpl.java:105) [12]: jogamp.nativewindow.NativeWindowFactoryImpl.getNativeWindowImpl(NativeWindowFactoryImpl.java:66) [13]: com.jogamp.nativewindow.NativeWindowFactory.getNativeWindow(NativeWindowFactory.java:654) [14]: javax.media.j3d.JoglPipeline$QueryCanvas.addNotify(JoglPipeline.java:8604) [15]: java.desktop/java.awt.Container.addNotify(Container.java:2804) [16]: java.desktop/java.awt.Window.addNotify(Window.java:791) [17]: java.desktop/java.awt.Frame.addNotify(Frame.java:495) [18]: java.desktop/java.awt.Window.show(Window.java:1053) [19]: java.desktop/java.awt.Component.show(Component.java:1729) [20]: java.desktop/java.awt.Component.setVisible(Component.java:1676) [21]: java.desktop/java.awt.Window.setVisible(Window.java:1036) [22]: javax.media.j3d.JoglPipeline.getBestConfiguration(JoglPipeline.java:8379) [23]: javax.media.j3d.Renderer.doWork(Renderer.java:496) [24]: javax.media.j3d.J3dThread.run(J3dThread.java:271) Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: java.lang.IllegalAccessException: class javax.media.j3d.JoglPipeline cannot access class sun.awt.X11GraphicsDevice (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @5eb5c224 at javax.media.j3d.JoglPipeline.getScreen(JoglPipeline.java:8553) at javax.media.j3d.Screen3D.<init>(Screen3D.java:354) at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:1124) at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:1026) at javax.media.j3d.Canvas3D.<init>(Canvas3D.java:1016) at com.eteks.sweethome3d.j3d.Component3DManager$ObservedCanvas3D.<init>(Unknown Source) at com.eteks.sweethome3d.j3d.Component3DManager$ObservedCanvas3D.<init>(Unknown Source) at com.eteks.sweethome3d.j3d.Component3DManager.getCanvas3D(Unknown Source) at com.eteks.sweethome3d.j3d.Component3DManager.getOnscreenCanvas3D(Unknown Source) at com.eteks.sweethome3d.swing.HomeComponent3D.createComponent3D(Unknown Source) at com.eteks.sweethome3d.swing.HomeComponent3D.access$200(Unknown Source) at com.eteks.sweethome3d.swing.HomeComponent3D$1.ancestorAdded(Unknown Source) at java.desktop/javax.swing.AncestorNotifier.fireAncestorAdded(AncestorNotifier.java:86) at java.desktop/javax.swing.AncestorNotifier.componentShown(AncestorNotifier.java:193) at java.desktop/java.awt.AWTEventMulticaster.componentShown(AWTEventMulticaster.java:188) at java.desktop/java.awt.AWTEventMulticaster.componentShown(AWTEventMulticaster.java:187) at java.desktop/java.awt.AWTEventMulticaster.componentShown(AWTEventMulticaster.java:187) at java.desktop/java.awt.Component.processComponentEvent(Component.java:6448) at java.desktop/java.awt.Component.processEvent(Component.java:6396) at java.desktop/java.awt.Container.processEvent(Container.java:2266) at java.desktop/java.awt.Window.processEvent(Window.java:2056) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4991) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4823) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) Caused by: java.lang.IllegalAccessException: class javax.media.j3d.JoglPipeline cannot access class sun.awt.X11GraphicsDevice (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @5eb5c224 at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:394) at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:674) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at javax.media.j3d.JoglPipeline.getScreen(JoglPipeline.java:8551) ... 41 more


I hope these informations are helpful for solving my problem.

Best regards,
Dennis
[Oct 28, 2022, 8:11:59 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: 9182
Status: Offline
Reply to this Post  Reply with Quote 
Re: home 3D view not working when executing the JAR file

You may have tried with a recent version of Java. Try an older version <= 15.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Oct 29, 2022, 12:00:31 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Dennisek
Newbie



Germany
Joined: Oct 27, 2022
Post Count: 4
Status: Offline
Reply to this Post  Reply with Quote 
Re: home 3D view not working when executing the JAR file

Thank you very much! Yes, with Java version 8 it's working! :)
[Nov 1, 2022, 9:31:13 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