Bug 9330

Summary: NL: Cannot run with Japanese package
Product: [Eclipse Project] JDT Reporter: Tod Creasey <Tod_Creasey>
Component: DebugAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: fanyuz
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Bug Depends on: 13463    
Bug Blocks: 6135    

Description Tod Creasey CLA 2002-02-08 16:02:40 EST
Ifyou try and run a class that is in a package with a Japanese name you will 
get a ClassNotFoundException.

STEPS
1) Create a JavaProject JapaneseTest
2) Create a package in that project with a Japanese name
3) Create a class JapaneseTest in the package with a main method like below

/**
 * @version 	1.0
 * @author
 */
public class JapaneseTest {

	public static void main(String[] args) {
		System.out.println("Test");
	}
}

4) Run the class - you will get an error like
java.lang.NoClassDefFoundError: ?????/JapaneseTest
Exception in thread "main"
Comment 1 Joe Szurszewski CLA 2002-04-09 13:07:15 EDT
Need to investigate, see if this is still a problem with launch configs.
Comment 2 Joe Szurszewski CLA 2002-04-10 17:28:46 EDT
Cannot even a create .java file underneath a Japanese-named package for reasons outlined in 
#13463.
Comment 3 Tod Creasey CLA 2002-05-15 12:30:19 EDT
The problem still exists but it is nothing to do with the Laucher - it is a 
problem I can replicate with the JDK.

Please note that the following steps have Japanese characters in them and they 
may not be readable in your Locale.

STEPS
1) Download the 1.3.1 JDK from www.eclipse.org
2) Upzip it
3) Create a subsdirectory of the bin directory で
4) Compile the code below by entering javac で/Japan.java from the bin directory
5) It will compile. Now try and execute by typing
java で.Japan
6) You will get a ClassDefNotFound ???/Japan.java printed to the console

Here is the test class

package で;

public class Japan {

	public static void main(String[] args) {
		System.out.println("できひ");
	}
}
Comment 4 Tod Creasey CLA 2002-05-15 12:42:09 EDT
Here is the problem report link from Sun.

http://developer.java.sun.com/developer/bugParade/bugs/4475696.html

They claim to have it fixed in 1.4 of the Sun VM.
Comment 5 Tod Creasey CLA 2002-05-15 12:48:43 EDT
Just tried on the may 2002 jdk 1.4.1 from Sun and the problem still exists 
there.
Comment 6 Joe Szurszewski CLA 2002-05-17 18:27:04 EDT
Tod, since this isn't really a debugger problem, is there a better home for this bug report?
Comment 7 Tod Creasey CLA 2002-05-21 07:38:11 EDT
Moving to JDT-Core
Comment 8 Philipe Mulet CLA 2002-05-21 08:44:35 EDT
This is a JDK bug, closing invalid.
Comment 9 Darin Wright CLA 2003-03-04 13:13:27 EST
*** Bug 32206 has been marked as a duplicate of this bug. ***