Recently I had the same type of issues. Note that when you run a java thread in VuGen it will use for all LR-based classes/functions the C-libraries via JNI. Also stdout and stderr are redirected. It looks like LR is using TLS for this. Your own created…