Agree this is usually behaviour based detection and not actual malware. Most anti-malware system dont like executables launching executables (eg B4J launching java/javac).
To stop my AV/AM interupting my work I have to exclude the B4J folder as well as any JRE/JDK. Otherwise they get blocked
never had any problem with AVG I/S (also with Kaspesky, Microsoft Defender)... except sometimes checking automatically with cybercapture (because of signature)