JDK-6582455 : java throws NoClassDefFoundError when user.dir includes non-ascii characters
  • Type: Bug
  • Component: tools
  • Sub-Component: launcher
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2007-07-18
  • Updated: 2010-08-03
  • Resolved: 2010-08-03
Related Reports
Relates :  
Description
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 ----------

Comments
EVALUATION I created a user directory with Indic character, created a Foo.java in the c:\Documents and Settings\???? directory compiled with jdk7-b104 javac and ran it with java, with no problems. Closing this as not reproducible.
03-08-2010