Make sure that the Java class specified has the proper access permissions for instantiation. Check the instantiation rules for the Java language.