After installing Gen 8.6 Consolidation PTF 8.6.4 when generate Standard Java Proxy and try to build it with Java 11 the resulting <server>.out file contain errors:
error: package javax.xml.bind.annotation does not exist
error: package javax.xml.bind.annotation.adapters does not exist
Gen 8.6 with Consolidation PTF 8.6.4.
Knowledge article javax.xml.bind.annotation error using Java 11 for Gen Java proxy build covers the Build Tool profile token requirements for Java 11 .
In this case the correct variables for Java 11 were already set up in the BT Profile.
As per the Prerequisites listed on page Gen 8.6 Solutions & Patches, WKS86200 is a prerequisite for both WKS86300 and WKS86400.
WKS86200 is the consolidation PTF that first included the Java 11 support and it appears that the current installation is therefore not processing BT profile token OPT.JAVAVERSION correctly.
The PTF_maintenance.log showed that PTF WKS86200 was not installed i.e. only PTFs WKS86300 and WKS86400 were installed. However this may have been a "package install" with WKS86200 already applied before being given to the user.
The user was requested to collect the list of Build Tool directory files using this commandC:\>cd "%Gen86%\Gen\bt"
C:\Program Files (x86)\CA\Gen86\Gen\bt>dir /s > C:\temp\bt.out
Support executed the same command to produce their own list from an installation with WKS86200, WKS86300 & WKS86400 installed.
Using Beyond Compare to compare both files shows that file javaversions.scr is installed which is one of the WKS86200 Java 11 support files.
However some of the BT script files (*.scr) are different in size and date - the user's have GA dates from 2016 instead of WKS86200 dates from 2019. Notably the standard Java Proxy build script build_proxy_java_2.scr is one of them.
So it seems the install has some WKS86200 files but not all of them. How that has happened is unknown but the install is effectively corrupt.
Trying to fix up this particular problem may still result in an unreliable install which has more unexpected problems later on.
Therefore the recommendation is to uninstall Gen and perform a new install followed by the 3 consolidation PTFs in this order which resolved the problem: