Bug 332618 - Unable to run java classes when workspace name, class name or package is Arabic.
Summary: Unable to run java classes when workspace name, class name or package is Arabic.
Status: VERIFIED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 critical (vote)
Target Milestone: 3.7 M5   Edit
Assignee: Ayushman Jain CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-15 06:56 EST by Maha Moustafa CLA
Modified: 2011-01-25 03:20 EST (History)
4 users (show)

See Also:


Attachments
A sample project with Arabic package name and Arabic class name. (3.16 KB, application/x-zip-compressed)
2010-12-15 07:02 EST, Maha Moustafa CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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