Skip to content
etkmlm edited this page Jul 28, 2024 · 12 revisions

Getting started

Downloading Java

Core Launcher works with Java 17. You have to download it and add it to the system path variable.

Notice: The launcher wrapper is in the development process, as soon as there will be no need for these processes.

If you have an earlier version of Java:

You have many options.

  • You can delete it.
  • You can remove it from the system path variable.
  • You can use a launch script. (see Creating a Launch Script)

Downloading Java 17

  1. Go to Java 17 Download Page
  2. Download (JDK or JRE) and install it based on your OS.
  3. Check the path variable after installation. (It should be like .../jre|jdk 17.../bin)

Downloading Launcher

You can download the latest version of the launcher from its website.

Notice: In my opinion, you should create a new folder for the launcher, because it creates a config.json and all of your settings are stored in this file. You don't want to lose it :)

Run

You have two options to run the launcher.

  1. Using a launch script. (see Creating a Launch Script)
  2. Clicking on the JAR twice. (Yup, like a normal app.)

Creating a Launch Script

java -jar CoreLauncher.jar

Create a file (Unix .sh, MacOS .command, Windows .bat) and paste this code into it.

You can replace java with a custom Java 17 path. (".../...jre|jdk 17.../bin/java.exe")

On Unix, you need to add

#!/bin/sh
cd "$(dirname "$(readlink -fn "$0")")"

MacOS, you need to add

#!/bin/bash
cd "$(dirname "$0")"

to the beginning of the script.

If you didn't change the launchers' JAR path, the launch script and launcher must be in the same directory.

Usage

CLI Commands

--profile

--profile "profile name"

Starts the launcher directly with the selected profile without opening any GUI.

--offline

Starts the launcher in offline mode.

More

Page-by-page documentation is here.

Clone this wiki locally