Come on now. The PATH variable has all sorts of important things in it, as you can tell just by looking at it. So don't just delete all of those important things, otherwise you could break something. As you have already seen.
Just add your JRE to the end of it.
You should be able to tell how that's done: there's a delimiter which separates the names of the programs in the path, so use that.