initialize jmockit without -javaagent
问题 I use jmockit and junit to write unit test for a module and run it in a STB. I use jmockit-1.7 because the STB only have java 5. I got this error when run unit test: java.lang.IllegalStateException: Jmockit has not been initialized. Check that your Java 5 VM has been started with -javaagent:jmockit.jar command line option but my STB use siege java VM, so it doesn't have -javaagent command line option I have google, and found a solution from Running tests with JMockit @BeforeClass public