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

JVM can't find a class whose name contains non-english character(run from .bat f

XMLWordPrintable

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

      Name: gm110360 Date: 03/15/2004


      FULL PRODUCT VERSION :
      java version "1.4.2"
      Java(TM) 2 Runtine Environment, Standard Edition (build 1.4.2-b28)
      Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Windows XP

      A DESCRIPTION OF THE PROBLEM :
      Here is my source :
      class BonneMatin???e {
      public static void main(String[] arguments) {
      System.out.println("Bonne matin???e");
      }
      }
       It's well compiled with javac and well executed with java, when I launch the commands in a DOS Window.

      But if a launch the JVM from the following BAT file (in the same directory than BonneMatin???e.java and BonneMatin???e.class):

      java BonneMatin???e
      PAUSE

      The JVM throws the following Exception :

      Exception in thread "main" java.lang.NoClassDefFoundError : BonneMatin<the graphical character whose ASCII code is 218>e

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1) edit and compile the following source in the same directory "foo":

      class BonneMatin???e {
      public static void main(String[] arguments) {
      System.out.println("Bonne matin???e");
      }
      }

      2) edit in the directory "foo" the following BAT file called BonneMatin???e.bat :
      java BonneMatin???e
      pause

      3) call the bat file in a DOS Window, from the "foo" directory




      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      I am expecting to see the message "Bonne matin???e" printed in the DOS Window
      ACTUAL -
      Exception in thread "main" java.lang.NoClassDefFoundError : BonneMatin<the graphical character whose ASCII code is 218>e

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Exception in thread "main" java.lang.NoClassDefFoundError : BonneMatin<the graphical character whose ASCII code is 218>e

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Don't use characters with accents in the name of the main classe
      (Incident Review ID: 243581)
      ======================================================================
      ###@###.### 2004-03-15

            ksrini Kumar Srinivasan
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: