Perhaps the reflection replacement requires main.java