You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2021/09/09 20:45:00 UTC

[jira] [Comment Edited] (MNG-7245) Maven doesn't start due to unicode in path to jansi.dll

    [ https://issues.apache.org/jira/browse/MNG-7245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17412831#comment-17412831 ] 

Michael Osipov edited comment on MNG-7245 at 9/9/21, 8:44 PM:
--------------------------------------------------------------

There is very little we can do because Java uses the ANSI version of Windows APIs to load DLLs. OpenJDK team needs to change that.
The only workaround we can provide is to add the exploded directory with native libraries, but still if you put Maven into a dir with non-ASCII chars it will fail anyway.
Alternatively, one can disable Jansi through a system property or provide a directory yourself and pass that to Maven -- all workarounds.

At the end, Windows is a terrible development OS with old cruft.


was (Author: michael-o):
There is very little we can do because Java uses the ANSI version of Windows APIs to load DLLs. OpenJDK team needs to change that.
The only workaround we can provide is to add the exploded directory with native libraries, but still if you put Maven into a dir with non-ASCII chars it will fail anyway.
Alternatively, one can disable Jansi through a system property or provide a directory yourself and pass that to Maven -- all workarounds.

> Maven doesn't start due to unicode in path to jansi.dll
> -------------------------------------------------------
>
>                 Key: MNG-7245
>                 URL: https://issues.apache.org/jira/browse/MNG-7245
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.8.2
>            Reporter: Vladimir Ivanov
>            Priority: Blocker
>             Fix For: 4.0.0, 4.0.0-alpha-1
>
>
> Looks like there is the same issue as MNG-7165 but it's at Windows now.
> {code:java}
> >mvn --version
> Failed to load native library:jansi-2.3.4-42a78e9e6c4110f-jansi.dll. osinfo: Windows/x86_64
> java.lang.UnsatisfiedLinkError: C:\Users\��������\AppData\Local\Temp\jansi-2.3.4-42a78e9e6c4110f-jansi.dll: Can't find dependent libraries
> Apache Maven 3.8.2 (ea98e05a04480131370aa0c110b8c54cf726c06f)
> Maven home: C:\Program Files\Apache\Maven
> Java version: 11.0.12, vendor: Microsoft, runtime: C:\Program Files\Microsoft\jdk-11.0.12.7-hotspot
> Default locale: ru_RU, platform encoding: Cp1251
> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
> {code}
> {code:java}
> >java --version
> openjdk 11.0.12 2021-07-20
> OpenJDK Runtime Environment Microsoft-25199 (build 11.0.12+7)
> OpenJDK 64-Bit Server VM Microsoft-25199 (build 11.0.12+7, mixed mode)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)