Guide: Setting up portable Java + beatoraja #37
wcko87
started this conversation in
beatoraja questions / troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Setting up beatoraja with a portable version of Java means you don't need to install Java on your PC to run beatoraja.
Note: The easiest way to have a portable version of beatoraja is to set it up following these instructions: Setting up beatoraja without installing Java.
Setting it up manually
1. Download Liberica Java
Download Liberica JDK from: https://bell-sw.com/pages/downloads/
Extract Liberica Java to some location. For this example we will use
D:\jre-21.0.xxx\
. This means you can find java.exe inD:\jre-21.0.xxx\bin\java.exe
.2. Edit beatoraja-config.bat
In your beatoraja folder, open
beatoraja-config.bat
in notepad. Look for this line:Replace the word
java
with the direct path of your java.exe from before, in quotes.The line should look something like this:
"..\..\jre-21.0.xxx\bin\java.exe"
.Explanation
If you type
java
into command prompt, it runs the default Java installation in your PC (If you have one set up). This is what the linejava -Xms1g -Xmx4g -cp beatoraja.jar;ir/* bms.player.beatoraja.MainLoader
in the config does.So, instead of running
java
, we run the java.exe from our portable version of Java by specifying the path to the program directly.Do note that all of this relies on running beatoraja through double-clicking
beatoraja-config.bat
.Beta Was this translation helpful? Give feedback.
All reactions