Skip to content

Compiling Plex

Plex is built using Gradle, making compilation simple with no manual dependency management required. If you prefer, pre-compiled builds are also available on the CI Server.

Before compiling, ensure you meet the following requirements:

Java 21 (JDK 21) – Plex requires JDK 21 to compile. Older versions will result in errors.

  • If you don’t have Java installed, download it from Adoptium.
  • During installation, enable the option to add JDK 21 to your system PATH (if not selected by default).

(Optional) Git – Recommended for cloning the repository and storing build information.

  • Windows users: Download Git from git-scm.com.
  • macOS/Linux users: Git is typically pre-installed.

Clone the Plex repository using Git:

Terminal window
git clone https://github.com/plexusorg/Plex

If you downloaded the source as a ZIP, extract it and navigate to the folder.

Terminal window
cd Plex

Plex includes Gradle (no separate installation needed). Run the appropriate command for your OS:

Terminal window
./gradlew build

After a successful build, the compiled files (Plex-Server.jar and Plex-Proxy.jar) will be in:

build/libs/

  • Java 21 is required on your server to run Plex.
  • For best results, use a Vault-compatible permissions plugin.
  • Check Versions for compatibility details.

If you encounter a Permission denied error, run:

Terminal window
chmod a+x gradlew

This grants execution permissions to the Gradle wrapper.


For further assistance, you can join our Discord server and ask for support there.