diff --git a/samples/BrowserPlugin/jni/main.cpp b/samples/BrowserPlugin/jni/main.cpp index 7f7496ba2..d00091faf 100644 --- a/samples/BrowserPlugin/jni/main.cpp +++ b/samples/BrowserPlugin/jni/main.cpp @@ -174,8 +174,8 @@ NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc, // notify the plugin API of the location of the java interface char* className = "com.android.sampleplugin.SamplePluginStub"; - NPError npErr = browser->setvalue(instance, kSetJavaClassName_ANPSetValue, - reinterpret_cast(className)); + NPError npErr = browser->setvalue(instance, kSetPluginStubJavaClassName_ANPSetValue, + reinterpret_cast(className)); if (npErr) { gLogI.log(instance, kError_ANPLogType, "set class err %d", npErr); return npErr;