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

java throws NoClassDefFoundError when the user.dir includes Japanese.

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      ladybird
    • CPU:
      generic, sparc
    • OS:
      generic, solaris_7, solaris_8
    • Verification:
      Verified

      Backports

        Description


        Tested with ladybird build 1.3.1ea-b07 on Japanese Solaris Sparc7 or 8 and WinNT.

        java.exe throws NoClassDefFoundError when user.dir includes Japanese name.

        Source for reproducing the problem:
        ______________________________________________________________________________
        public class test {
                static void main(String args[]) {
                        System.out.println("test");
                }
        }
        ______________________________________________________________________________

        To reproduce,
        1. Create a enviroment which user.dir includes Japanese directory.
        2. Create "test.java" including the source above.
        Put test.java under the enviroment created by step 1.
        3. Compile test.java.
        4. Excute test.
        Then, "Exception in thread "main" java.lang.NoClassDefFoundError: test" is displayed in terminal.

        On the other hand, if you excute Step2~4 when user.dir does not includes Japnese directory, the proper result is got.
        For example, if you excute "Dir" under the direcoty /home/tokunaga/dirtest/, the result is as follows;
        Cwd from property:/home/tokunaga/dirtest
        Cwd by canonicalization:/home/tokunaga/dirtest

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                alanb Alan Bateman
                Reporter:
                mmtokunasunw Mtokunaga Mtokunaga (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: