Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3271

Could not find or load main class configtest_ax_javac_and_java on some non-english systems

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.3
    • Component/s: Build Process
    • Labels:
      None
    • Environment:
      • German openSuse 13.2
      • path with Umlauts (Arbeitsfläche) within
    • Patch Info:
      Patch Available

      Description

      The JVM fails to locate the *.class file within an path that contains (e.g.) Umlauts, such as in ~/Arbeitsfläche/Thrift because of LC_ALL=C being set by configure. The symptom is, that

      java configtest_ax_javac_and_java
      

      works fine when invoked by hand, but configure fails at exactly that step, even with an explictly set classpath -cp . with the message:

      config.log
      Running "/usr/bin/javac configtest_ax_javac_and_java.java"
      Running "/usr/bin/java configtest_ax_javac_and_java"
      Error: Could not find or load main class configtest_ax_javac_and_java
      

      Temporarily adding LC_ALL= right before the Java check solves the issue. The other workaround is to use a path using only LC_ALL=C-compatible characters.

      It seems to be related to the issue mentioned at http://lists.gnu.org/archive/html/autoconf/2011-10/msg00000.html and I eventually came up with the reason because after checking the usual suspects like CLASSPATH and the like I finally wondered whether it might have something to do with the fact that Java emits english error messages during configure, but german messages otherwise.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jensg Jens Geyer
                Reporter:
                jensg Jens Geyer
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: