Trying to start JBoss AMQ on JDK 10 and was getting
Unrecognized VM option 'UseFastAccessorMethods'
I removed this option from artemis-profile
and it works fine now.
Is there any better option?
I'm not aware of any better option. That VM option has already been removed upstream in the Apache ActiveMQ Artemis project via ARTEMIS-1449. This change will be included in a future version of Red Hat AMQ.