You forgot the new keyword. java(...) returns the class([c...[) new java(...) an instance of that class ([o....]).
View entire thread