Added some warnings when trying to run tests with a JRE instead of a JDK.
Some minor path appending changes as well.