Search code examples
javaswingx11google-chrome-oschromebook

How do I build and run a Java Swing application on a Chromebook?


What steps are needed to build and test a Java Swing application on a chromebook using Crostini?


Solution

  • The following steps allowed me to build and run a Java Swing app from a chromebook.

    After enabling Linux on my chromebook, I ran the following commands in a terminal to install java, maven, and an X11 server.

    sudo apt install x11-apps
    sudo apt-get install openjdk-8-jdk
    sudo apt install maven