Early Access builds for JDK 9 b42, JDK 8 b18 & JDK 7 b03 are available on java.net
Andrew Dinn
adinn at redhat.com
Tue Jan 6 09:44:13 UTC 2015
On 05/01/15 17:09, Alan Bateman wrote:
>
> Thanks for the update. So I'm curious how this worked previously, was
> this Maven plugin using its own class loader to load types from tools.jar?
Well, . . . maven was using its own classloader to load types from
/whatever jars/ it found in the classpath.
So, to test an app with BMUnit you need to add both the byteman jars
/and/ the tools jar to the classpath. e.g. from maven with Linux/Windows
(but not Mac OSX) the latter requirement means you add this dependency:
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.6</version>
<scope>system</scope>
<systemPath>${tools.jar}</systemPath>
</dependency>
Of course, that fails if you are using JDK9. So, one of the changes
needed to build byteman-bmunit.jar with JDK9 is to add the dependency in
a profile conditional on the JDK version being in the range 1.6-1.8.
regards,
Andrew Dinn
-----------
Senior Principal Software Engineer
Red Hat UK Ltd
Registered in UK and Wales under Company Registration No. 3798903
Directors: Michael Cunningham (USA), Matt Parson (USA), Charlie Peters
(USA), Michael O'Neill (Ireland)
More information about the quality-discuss
mailing list