@grandrolf ??? Of course he should, but looks like he already said it is not possible for him, because of the reason he clearly stated in his post, doesn't it?
Original poster didn't state that he couldn't install/use (put in a folder), original poster stated that he couldn't use oracle java for the things he does for work.
(based on the way original poster states this, my take on that is a license issue, not a technical issue - and as long as they are handled as 2 different parts, there's no issue in licensing)
That's not the same thing to have co-existance of the 2 on the same system.
Compare how Mojang bundles java with the launcher = it doesn't need to be installed on the system, as long as the launcher have clear sight of the version needed, as in located in a folder - perhaps the original poster wasn't aware that his could be a thing - as in having what is needed for work and having what is needed for playing Minecraft - in co-existance withouth issues.
Just because someone states that "I need it this way, or it needs to work like this" - that doesn't mean that there are other solutions that could fit the needs.
@grandrolf nowadays there should be very little (if any) difference between oracle java and openJDK, and though it is technically possible to have them installed both it can be a real pain. So please, don't advice to install oracle java is someone mentions openJDK it probably isn't the issue.
Probably isn't the issue?
(also - op is using AdoptJDK not OpenJDK)
You're assuming - I don't do that, I base this on facts seen by others having the same type of issues - experienced myself.
And why shouldn't I make suggestions when I know this could be a possible solution for the user?
I have no prestige in this or wanting to prove any point, just giving a option for a possible solution for the original poster.
I don't understand why this was such a thing for several people to react on - did this struck a nerve somewhere?
EDIT: And perhaps it's just the jre that's needed for playing the game, but what would I know