Bug 332618

Summary: Unable to run java classes when workspace name, class name or package is Arabic.
Product: [Eclipse Project] JDT Reporter: Maha Moustafa <maham>
Component: CoreAssignee: Ayushman Jain <amj87.iitr>
Status: VERIFIED INVALID QA Contact:
Severity: critical    
Priority: P3 CC: amj87.iitr, khouly, mfadl, srikanth_sankaran
Version: 3.7   
Target Milestone: 3.7 M5   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
A sample project with Arabic package name and Arabic class name. none

Description Maha Moustafa CLA 2010-12-15 06:56:53 EST
Build Identifier: 20100917-0705

The eclipse IDE fails to run any class on windows 7 if the class is named in Arabic or if the path of te workspace contains Arabic words.

Reproducible: Always

Steps to Reproduce:
1. Set system locale and language to Arabic-Egypt.
2. Open Eclipse IDE. Choose Arabic name for the workspace folder.
2. Choose Window>>Preferences>>General>>Workspace.
3. Change the text file encoding to UTF-8. Click OK to save the changes.
4. In a new java project, create a new class in a package that contains Arabic words. Name the class in Arabic too. Make sure the class contains "main" method.
5. Add "hello world" code to the class.
6. Right click the class name in the package explorer and choose Run>>Java Application.
7. Observe what happens.

Expected Result:

Program runs without errors or warnings.

Actual Result:

An exception is thrown. "Exception occurred executing command line.
Cannot run program "<JRE Path>\jre6\bin\javaw.exe" (in directory "<Workspace directory>>\workspace\new\<project name>"): CreateProcess error=267, The directory name is invalid."


N.B. The running JRE version is "1.6.0_23" Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Comment 1 Maha Moustafa CLA 2010-12-15 07:02:23 EST
Created attachment 185217 [details]
A sample project with Arabic package name and Arabic class name.
Comment 2 Ayushman Jain CLA 2010-12-15 07:08:57 EST
Looking at the error message this does not seem to be an Eclipse bug to me, rather a JRE/windows issue. Are you able to compile and run your code using the command line javac?
Comment 3 Maha Moustafa CLA 2010-12-15 07:36:16 EST
Sorry, I changed the Locale again and now it runs fine. Sorry for interruption.
Comment 4 Srikanth Sankaran CLA 2011-01-25 03:20:58 EST
Verified for 3.7 M5