Re: ver 5.7 on Linux "Can't create graphics environment"

by yatsek » Fri Apr 09, 2021 4:08 pm

This post shows on top of Google search when looking for mentioned error - i.e:

Code: Select all

$ sweethome3d
Java 3D: implicit antialiasing enabled
Exception in thread "AWT-EventQueue-0" javax.media.j3d.IllegalRenderingStateException: Can't create graphics environment for Canvas 3D
        at com.eteks.sweethome3d.j3d.Component3DManager.getCanvas3D(Unknown Source)
....
This was not solved neither by using freshly downloaded version of SweetHome3D nor by running

Code: Select all

./SweetHome3D-Java3D-1_5_2
But what was VERY helpful was (found on some other place in this forum) to add:

Code: Select all

-Dcom.eteks.sweethome3d.j3d.useOffScreen3DView=true
in script [font=courier new]SweetHome3D[/font]