JDK-8221508 : Cannot run java.exe from folder if path contains non-ASCII character
  • Type: Bug
  • Component: tools
  • Sub-Component: launcher
  • Affected Version: 8,11,12,13
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows
  • Submitted: 2019-03-26
  • Updated: 2019-10-23
  • Resolved: 2019-10-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdResolved
Related Reports
Blocks :  
Duplicate :  
Relates :  
Description
This issue was found while working on JDK-8205991 and JDK-8205991 fails for exact same reason.

To reproduce this issue:
1) Create folder JavaTest����
2) Copy JDK to this folder.
3) Run E:\>E:\JavaTest����\jdk-13\bin\java.exe
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.

Simple console application which prints string works fine from same path.

This issue is reproducible with JDK-13 b13 on Windows 7 64-bit. I did not tried other versions.
Comments
Not sure if it is related, but in Region and Language settings -> Administrative -> Language for non-Unicode programs set to "Russian" in my case, otherwise my system has "English (us)".
30-04-2019

Hi Alexander, i tried both the approaches, still could not get into the problem. please check the attached image (8221508.png). I will further investigate on this.
30-04-2019

Another approach to reproduce this issue is to create bat file inside bin folder and run it via Windows Explorer. See attached image. Not sure what problem is but shortcut to CMD which I have pinned to Start Menu runs CMD which understand non-ASCII characters and if I run CMD from start menu or Windows Explorer, then it will not understand non-ASCII characters.
29-04-2019

See attached image on how I reproduce it. Note: In my image I have folder name "JavaTest����". In you case in CMD it named "JavaTestAc". Looks like CMD on your machine does not see this folder with non-ASCII characters correctly. You can try to CD first into this folder.
29-04-2019

Hi [~almatvee], i am unable to run the step3 "Run E:\>E:\JavaTest����\jdk-13\bin\java.exe " please check the attached image. Kindly guide how can i reproduce this step.
29-04-2019