Search code examples
javajetbrains-ide

How to build JetBrains runtime from its GitHub repo?


I am specifically trying to follow this post. It mentions

"build jbr21 off of nightly openjdk, e.g. OpenJDK21U-jdk_x64_linux_hotspot_2023-08-09-06-56.tar.gz"

A link is provided to the build instructions but it is too hard for a noob to follow.

What are the steps I need to follow in order to build and run the jbr21 branch from the JetBrains runtime repository?


Solution

  • First clone the jbr repository and switch to the branch version you'd like to build.

    git clone https://github.com/JetBrains/JetBrainsRuntime.git
    cd JetBrainsRuntime
    git checkout jbr21
    

    Next, follow the Build instructions in the README: https://github.com/JetBrains/JetBrainsRuntime/tree/jbr21#configuring-the-build-environment

    Example for Linux (Docker):

    Create a container:

    $ cd jb/project/docker
    $ docker build .
    ...
    Successfully built 942ea9900054
    

    Run these commands in the new container:

    $ docker run -v `pwd`../../../../:/JetBrainsRuntime -it 942ea9900054
    # cd /JetBrainsRuntime
    # sh ./configure
    # make images CONF=linux-x86_64-normal-server-release