Successfully reproduced the result on my local Macbook Pro M3. Encountered several issues:
Had to modify run.sh to change the -Xms to 2GB and -Xmx to 6GB in order for the program to not abort while building the index, hypothetically maybe due to the fact that the new M3 Mac only has 8GB memory, and JVM was being lazy on Garbage collection and excessively allocating memory, thinking it had 64GB instead of 8GB, which may cause excessive swapping to disk and killed the program.
Java 21 did not seem to be available on student environment, because administrator access was needed to install the package, I had to go back to my local computer to go through this guide.
Successfully reproduced the result on my local Macbook Pro M3. Encountered several issues: