Can detect Java code invoked from C