Getting studio 3t running

So I need Studio 3t for my work, which is in Java, using the annoying Install4j software.
This means that the linux download gives me a tar file with a single .sh file which contains a huge binary dump.
I wanted to try a get it setup via nix-build, but I have no idea where to start, since the first error I get when trying to run the script is this

./ line 580: /home/armeeh/Pkg/studio-3t/ cannot execute: required file not found

Looking at the script it does have some sort of override for java location, so I tried:

$ nix-shell -p jre
$ INSTALL4J_JAVA_HOME_OVERRIDE=$(realpath "$(dirname $(which java))/..") ./

But that resulted in the same error.