The thing is that I didn't mess up the install. While registering a new java version, I edited my etc/profile on Ubuntu and I ended up messing up a batch file, which in retrospect wouldn't have been too hard to fix, but out of frustration and lack of time in that moment, I just erased Ubuntu...