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

java throws NoClassDefFoundError when user.dir includes non-ascii characters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 6
    • tools
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.6.0_02"
      Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
      Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      When the working directory (user.dir) contains non-ascii characters, java throws a java.lang.NoClassDefFoundError. The situation is the same as described in bug 4388925, which indicates the problem was fixed in 1.3.1.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Steps to reproduce are the same as bug 4388925:

        To reproduce,
      1. Create a directory containing non-ascii characters in the name.
      2. Run a java program from this directory.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Expect the program to run successfully
      ACTUAL -
      "Exception in thread "main" java.lang.NoClassDefFoundError: test"

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      public class test {
              static void main(String args[]) {
                      System.out.println("test");
              }
      }
      ---------- END SOURCE ----------

            ksrini Kumar Srinivasan
            ryeung Roger Yeung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: