I recently made a post detailing an issue with creating a RedPitaya ecosystem on my Windows 11 laptop and wanted to see if my Windows 10 desktop had anymore luck.
After installing Ubuntu 20.04.5 LTS (Focal Fossa) via Microsoft Store, I faked my OS to 18.04.4 (Bionic Beaver) which is required to avoid issues with Xilinx installer. I attempted to install Xilinx Unified 2020.1 via
chmod +x ./Xilinx_Unified_2020.1_0602_1208_Lin64.bin
sudo ./Xilinx_Unified_2020.1_0602_1208_Lin64.bin
but I ran into this common error:
ERROR: Installer could not be started.
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
java.awt.HeadlessException:
Following other StackOverflow answers (namely this one), I set my DISPLAY
variable to localhost:0.0
, :0.0
, :0
, and unset it, all of which resulted in the following error message:
ERROR: Installer could not be started. Could not initialize class sun.awt.X11GraphicsEnvironment
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Unknown Source)
at java.desktop/java.awt.GraphicsEnvironment.createGE(Unknown Source)
at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
at java.desktop/java.awt.Window.initGC(Unknown Source)
at java.desktop/java.awt.Window.init(Unknown Source)
at java.desktop/java.awt.Window.<init>(Unknown Source)
at java.desktop/java.awt.Frame.<init>(Unknown Source)
at java.desktop/java.awt.Frame.<init>(Unknown Source)
at java.desktop/javax.swing.JFrame.<init>(Unknown Source)
at h.b.<init>(Unknown Source)
at com.xilinx.installer.gui.F.<init>(Unknown Source)
at com.xilinx.installer.gui.InstallerGUI.<init>(Unknown Source)
at com.xilinx.installer.gui.InstallerGUI.<clinit>(Unknown Source)
at com.xilinx.installer.api.InstallerLauncher.main(Unknown Source)
When installing Xilinx on my laptop I kept a record of what solved my errors, and I wrote that installing OpenJDK via
sudo apt-get install openjdk-6-jdk
sudo apt-get install openjdk-6-jre
solved my issue, but on my desktop this is not the case. I have attempted with several versions of Java (including Java 8, 17, and 19) from both OpenJDK and Oracle, and I have installed them by either .tar.gz files, repositories, or terminal install commands.
Currently I am running
java version "17.0.1" 2021-10-19 LTS
Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)
and receiving the error message.
Any help using OpenJDK or Oracle is appreciated.
I am running x64 Windows 10 Home 21H2, OS Build 19044.2251, and I am unable to update to Windows 11 (error code 0xc1900101). I have also installed Ubuntu through Windows Subsystem for Linux, and that has not resulted in any different results.