Fork me on GitHub

Download e build the code

Get the latest release of MirComp.

Build the code

Download the latest code release from: GitHub releases page

At the moment there are not pre-built binaries available for MirIDE.

Java 21

You need Java 21 to build and run MirComp.
Java is available for all the major operating systems (Windows, Linux and OSX).
There are several excellent open source options out there.
For example you can get OpenJdk 21 from jdk.java.net.
Untar the downloaded file and move the content to a folder of your choice (e.g. programs).

Set up your environment variables

Supposing the folder is named "programs"
On Ubuntu 22.04:

export JAVA_HOME=/home/user/programs/jdk-21.0.1/
export JRE_HOME=$JAVA_HOME
export PATH=$PATH:$JAVA_HOME/bin
		

On Windows 10 you can open a powershell and enter:

[Environment]::SetEnvironmentVariable("JAVA_HOME", "C:\programs\jdk-21.0.1", [System.EnvironmentVariableTarget]::Process)
[Environment]::SetEnvironmentVariable("JRE_HOME", $env:JAVA_HOME, [System.EnvironmentVariableTarget]::Process)
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";" + $env:JAVA_HOME + "\bin;", [System.EnvironmentVariableTarget]::Process)
		

Create a self-contained private MirIDE application

We are almost ready to finally create our own desktop application.
First, create a dist folder (e.g. inside the programs folder) and then launch the createApp task inside miride with the gradle wrapper (gradlew) from the parent folder
On Ubuntu 22.04:

cd /home/user/programs/
mkdir dist
cd /home/user/programs/mircomp/miride
../gradlew createApp -PdistPath="/home/user/programs/dist"
		
You can finally run the main executable inside the created self-contained application:
cd /home/user/programs/dist/app/MirIDE/bin
./MirIDE
		
Similar on Windows 10:
C:\programs\mircomp\miride> ..\gradlew createApp -PdistPath="C:\programs\dist"
		
where inside the just created dist folder is sufficient a double click on the exec file.