I agree with Denis, calling it a duplicate may be stretching it.
However on the bright side. I do think this issue is now resolved. I even implemented something in STS already that allows the user to pick their JVM to use for Gradle. And I'm now able to pass this info to the tooling API with no problem.
The method in the API is this one: