Avast for Business Rule for Java

Greetings,

Can anyone help with how I should add Java to Avast?

Sitrep: When trying to run a application from JBoss I add the ports 4447 and 8080 to the firewall and I can connect. However after some time when trying to shutdown the instance it fails and I have to force quit it. I assume this would be because the port for the shutdown is also blocked so instead of just adding more ports I was wondering how would I add the Java process?
Problem being that the Java_Home variable is not set on the system as multiple versions of Java are tested.

Is there a way to add Java as a application rule in the following manner?

%PROGRAMFILES(x86)%\Java*\bin\java.exe

Or will this not work because of the wildcard?