I'm working on a project which bascially requires the use of a java class in an objc app. I've had no luck being able to use this java class, so I tried a super simple test, just to see if the bridge was working. It worked for anything in a java.* package. But when i tried to use my own class, itdid not work at all.
Code:
id javaClass;
javaClass = [[NSClassFrom String(@"JavaClass") alloc] init];
NSLog([javaClass mutate:@"test"]);
the mutate is a java function that just takes a string, and returns a different string. The actual runtime error that I am getting is "Selector not recognized" But I traced this to the fact that its not loading the JavaClass into javaClass.
-Max