zink created IGNITE-16911:
-----------------------------

             Summary: /bin/ignite.cmd failed to start if Active code page was 
set
                 Key: IGNITE-16911
                 URL: https://issues.apache.org/jira/browse/IGNITE-16911
             Project: Ignite
          Issue Type: Bug
    Affects Versions: 2.13
         Environment: Win10 

!image-2022-04-29-10-53-05-897.png!
            Reporter: zink
         Attachments: image-2022-04-29-10-50-12-275.png, 
image-2022-04-29-10-52-47-597.png, image-2022-04-29-10-53-05-897.png

I set active code page maunally before.

so everytime i run cmd shell, "Active code page: 65001" was pre-executed.

In this case, when execute below code from ignite.bat to start ignite.bat:

 

 
{code:java}
:checkJdkVersion
set cmd="%JAVA_HOME%\bin\java.exe"
for /f "tokens=* USEBACKQ" %%f in (`%cmd% -version 2^>^&1`) do (
    set var=%%f
    goto :LoopEscape
)
:LoopEscape {code}
 

the actual result was :

 
{code:java}
Active code page: 65001
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12) 
...{code}
so MAJOR_JAVA_VER and MINOR_JAVA_VER will be misset, and ignite failed to start.

!image-2022-04-29-10-50-12-275.png!

 

 



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to