The ProcessTools has some support of jtreg thread factory functionality. It tries to run the new process using virtual thread to run `main()` method. This fix updates it to skip the java runs where no main class is involved and more correctly process options which has 2nd argument. Also is sets `main.wrapper` property to allow launched process understand id any wrappers is used.
------------- Commit messages: - 8307307: Improve ProcessTools.java to don't try to run Virtual wrapper for incompatible processes Changes: https://git.openjdk.org/jdk/pull/13808/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13808&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8307307 Stats: 33 lines in 1 file changed: 14 ins; 4 del; 15 mod Patch: https://git.openjdk.org/jdk/pull/13808.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/13808/head:pull/13808 PR: https://git.openjdk.org/jdk/pull/13808