Print at Dec 18, 2025, 6:04:12 PM

Posted by yatsek at Apr 9, 2021, 4:08:24 PM
Re: ver 5.7 on Linux "Can't create graphics environment"
This post shows on top of Google search when looking for mentioned error - i.e:
$ 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
./SweetHome3D-Java3D-1_5_2


But what was VERY helpful was (found on some other place in this forum) to add:
-Dcom.eteks.sweethome3d.j3d.useOffScreen3DView=true

in script SweetHome3D