Running examples in ‘rJava-Ex.R’ failed
The error most likely occurred in:

> ### Name: java-tools
> ### Title: java tools used internally in rJava
> ### Aliases: java-tools
> 
> ### ** Examples
> 
> ## Don't show: 
> # running the java unit tests from the R examples
> .jinit()
[1] 0
> J("RJavaTools_Test")$runtests()
Testing RJavaTools.getConstructor
    * getConstructor( String, null ) : ok 
    * getConstructor( Integer, { String.class } ) : ok 
    * getConstructor( Integer, null ) -> exception : ok 
    * getConstructor( ExampleClass, {Object.class, Object.class, boolean}) :  ok
PASSED
Testing RJavaTools.classHasField
PASSED
Testing RJavaTools.classHasMethod
    * classHasMethod( RJavaTools_Test, 'getX', false )   true : ok
    * classHasMethod( RJavaTools_Test, 'getStaticX', false )   true : ok
    * classHasMethod( RJavaTools_Test, 'getX', true )   false : ok
    * classHasMethod( RJavaTools_Test, 'getStaticX', true )   true : ok
    * classHasMethod( RJavaTools_Test, 'getBogus', false )   false : ok
    * classHasMethod( RJavaTools_Test, 'getStaticBogus', true )   false : ok
PASSED
Testing RJavaTools.classHasClass
    * classHasClass( RJavaTools_Test, 'TestException', true )   true : ok
    * classHasClass( RJavaTools_Test, 'DummyNonStaticClass', true )   false : ok
    * classHasClass( RJavaTools_Test, 'DummyNonStaticClass', false )   true : ok
PASSED
Testing RJavaTools.hasField
    java> DummyPoint p = new DummyPoint()
    * hasField( p, 'x' )  true : ok
    * hasField( p, 'iiiiiiiiiiiii' )   false : ok
    * testing a private field   false : ok
PASSED
Testing RJavaTools.hasClass
    * hasClass( RJavaTools_Test, 'TestException' )   true : ok
    * hasClass( RJavaTools_Test, 'DummyNonStaticClass' )   true : ok
PASSED
Testing RJavaTools.getClass
    * getClass( RJavaTools_Test, 'TestException', true )   : ok
    * getClass( RJavaTools_Test, 'DummyNonStaticClass', true )   : ok
    * getClass( RJavaTools_Test, 'DummyNonStaticClass', false )   : ok
PASSED
Testing RJavaTools.hasMethod
    java> DummyPoint p = new DummyPoint()
    * hasMethod( p, 'move' )  true : ok
    * hasMethod( p, 'iiiiiiiiiiiii' )   false : ok
    * testing a private method   false : ok
PASSED
Testing RJavaTools.isStatic
    * isStatic(RJavaTools_Test.x) = false : ok 
    * isStatic(RJavaTools_Test.getX() ) = false : ok 
    * isStatic(RJavaTools_Test.static_x) = true  : ok 
    * isStatic(RJavaTools_Test.getStaticX() ) = true  : ok 
    * isStatic(RJavaTools_Test.TestException ) = true  : ok 
    * isStatic(RJavaTools_Test.DummyNonStaticClass ) = false : ok 
PASSED
Testing RJavaTools.getCompletionName
    * getCompletionName(RJavaTools_Test.x) == 'x' : ok 
    * getCompletionName(RJavaTools_Test.static_x) == 'static_x' : ok 
    * getCompletionName(RJavaTools_Test.getX() ) == 'getX()' : ok 
    * getCompletionName(RJavaTools_Test.setX( Integer ) ) == 'setX(' : ok 
PASSED
Testing RJavaTools.getFieldNames
    * getFieldNames(DummyPoint, false) : ok 
    * getFieldNames(DummyPoint, true ) : ok 
    * getFieldNames(RJavaTools_Test, true ) : ok 
    * getFieldNames(RJavaTools_Test, false ) : ok 
PASSED
Testing RJavaTools.getMethodNames
    * getMethodNames(RJavaTools_Test, true) : ok 
    * getMethodNames(Object, true) : ok 
    * getMethodNames(RJavaTools_Test, false) : ok 
PASSED
Testing RJavaTools.getStaticFields
    * getStaticFields( RJavaTools_Test )   : ok
    * getStaticFields( Object )   : ok
PASSED
Testing RJavaTools.getStaticMethods
    * getStaticMethods( RJavaTools_Test )   : ok
    * getStaticMethods( Object )   : ok
PASSED
Testing RJavaTools.getStaticClasses
    * getStaticClasses( Object )   : ok
    * getStaticClasses( RJavaTools_Test )   : ok
PASSED
Testing RJavaTools.invokeMethod
  * testing enforcing accessibility (bug# 128)Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl,  : 
  RJavaTools_Test$TestException: not able to enforce accessibility
Calls: <Anonymous> -> .jrcall -> .jcall -> .jcheck
Execution halted