Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8232624

Java cannot start: NewStringPlatform missing

XMLWordPrintable

    • b18
    • 14
    • b20
    • x86
    • windows

      32 bit Java on Windows does not start because of this error:
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (.../src/hotspot/share/classfile/javaClasses.cpp:382), pid=25576, tid=7416
      # fatal error: NewStringPlatform missing

      JDK-8231355 removed NewStringPlatform alias for JNU_NewStringPlatform.

      JNIEXPORT jstring
      NewStringPlatform(JNIEnv *env, const char *str)
      {
          return JNU_NewStringPlatform(env, str);
      }

      JNIEXPORT jstring JNICALL
      JNU_NewStringPlatform(JNIEnv *env, const char *str)
      {

      NewStringPlatform did not have JNICALL decorator, thus it was exported by its undecorated name in 32 bit Windows. JNU_NewStringPlatform has JNICALL decorator, its name is decorated and therefore it cannot be found.

            aivanov Alexey Ivanov
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: