Locate the folder where JVM is installed and issue this command in shell:
point it to the bin folder because thats where everything is. I dont quite follow what you mean by
"The error I get when trying to install a bin is "this is not a java virtual machine" or some bullshit like that"
-- You said you installed it already and the next line you are saying you tried to install a binary. Please be more clear.