title: How to set a field from C++ to Java, using JNI
body: <p>I have a java class:</p>
  
  <pre><code>public class LibClass
  {
      public static String receivedValue;
      ...native methods...
  }
  </code></pre>
  
  <p>Then in the c++ code, I want to set the value of the String from C++. I don't want to create new objects, I just want to assign a value to the String.</p>
  
  <p>In C++ I have this so far:</p>
  
  <pre><code>JNIEXPORT void JNICALL Java_com_aries_LibClass_singleCallback
    (JNIEnv *env, jclass clz, jstring value)
  {
      jclass clazz = (env)-&gt;FindClass("com/aries/LibClass");
  
  }
  </code></pre>
  
  <p>I'm looking for something like (env)->SetObjectArrayElement but for Strings.</p>
  
  <p>Is this possible, and if so, how?</p>
  
  <p>Thanks</p>