You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "zink (Jira)" <ji...@apache.org> on 2022/04/29 03:07:00 UTC

[jira] [Updated] (IGNITE-16911) /bin/ignite.cmd failed to start if Active code page was set

     [ https://issues.apache.org/jira/browse/IGNITE-16911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

zink updated IGNITE-16911:
--------------------------
    Description: 
I set active code page maunally by change {{HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\Autorun}} 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!

 

 

  was:
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!

 

 

     Issue Type: Improvement  (was: Bug)
       Priority: Major  (was: Blocker)

> /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: Improvement
>    Affects Versions: 2.13
>         Environment: Win10 
> !image-2022-04-29-10-53-05-897.png!
>            Reporter: zink
>            Priority: Major
>         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 by change {{HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\Autorun}} 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)