Knowledge Base Article
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException:
Description
Due to a problem in the Java version shipped with the Quartus® Prime Software version 17.1, you may see Java errors like this
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: sun.awt.image.BufImgSurfaceData cannot be cast to sun.java2d.xr.XRSurfaceData
at sun.java2d.xr.XRPMBlitLoops.cacheToTmpSurface(Unknown Source)
at sun.java2d.xr.XrSwToPMBlit.Blit(Unknown Source)
at sun.java2d.pipe.DrawImage.blitSurfaceData(Unknown Source)
at sun.java2d.pipe.DrawImage.renderIm........
Resolution
To work around this problem, set the following jvm argument before launching Platform Designer.
"-Dsun.java2d.xrender=false"
e.g
export QSYS_EDIT_JVM_ARGS="-Dsun.java2d.xrender=false"
qsys-edit&
or
quartus&
->launch Platform Designer from the Quartus Prime software
The Java version is scheduled to updated in a future release of the Quartus Prime software.