apache / apache/netbeans

Error: "Cannot be run from folder contains non-ASCII characters in path"

Open
#4,314 13 comments 0 reactions 0 assignees View on GitHub
kind:bug needs:triage os:windows
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Tested on Apache NetBeans 14
Tested on Apache NetBeans 13

### What happened

NB not started if path contains non-ASCII characters, for example:

C:\Users\Андрей\Documents\NetBeansProjects\helper-util\application\target\helper-util-app-1.0-SNAPSHOT\helperutil\bin

### How to reproduce

1. Create new empty Platform Application
2. Build it by maven
3. Run from bin directory with non-ASCII characters
4. Get message from loader about bad path

![image](https://user-images.githubusercontent.com/15821889/176987782-3e2501bf-edda-4971-83c1-30843c5cefed.png)

![image](https://user-images.githubusercontent.com/15821889/176988474-7c51ea11-2520-4960-a87b-12005f9f8de5.png)

### Did this work correctly in an earlier version?

Apache NetBeans 12.3 or earlier

### Operating System

Windows 10 21H1

### JDK

17.0.1; Java HotSpot(TM) 64-Bit Server VM 17.0.1+12-LTS-39

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

_No response_

### Are you willing to submit a pull request?

No

### Code of Conduct

Yes

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure on Windows 10 by building a Platform Application with Maven and running it from its bin directory under a path containing non-ASCII characters. Start by tracing the loader message shown in the report and compare behavior with NetBeans 12.3 or earlier. Done means the application starts successfully from such a path without the bad-path error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop-dev, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.