justbk2015 commented on pull request #14999:
URL: https://github.com/apache/shardingsphere/pull/14999#issuecomment-1019289283
> > I tried the command `java -version 2>&1 | sed '1!d' | sed -e 's/"//g' |
awk '{print $3}'`, but the result is not expected:
> > ```
> > {22-01-22 22:43}bogon:~ wuweijie% java -version 2>&1 | sed '1!d' | sed
-e 's/"//g' | awk '{print $3}'
> > JAVA_TOOL_OPTIONS:
> > ```
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > The output of my `java -version`:
> > ```
> > {22-01-22 22:44}bogon:~ wuweijie% java -version
> > Picked up JAVA_TOOL_OPTIONS: -Djava.net.preferIPv4Stack=true
> > openjdk version "1.8.0_312"
> > OpenJDK Runtime Environment (Zulu 8.58.0.13-CA-macos-aarch64) (build
1.8.0_312-b07)
> > OpenJDK 64-Bit Server VM (Zulu 8.58.0.13-CA-macos-aarch64) (build
25.312-b07, mixed mode)
> > ```
>
> I try `java -version` in my laptop, the result is
>
> ```
> openjdk version "1.8.0_292"
> OpenJDK Runtime Environment Corretto-8.292.10.1 (build 1.8.0_292-b10)
> OpenJDK 64-Bit Server VM Corretto-8.292.10.1 (build 25.292-b10, mixed mode)
> ```
>
> So the result of `java -version 2>&1 | sed '1!d' | sed -e 's/"//g' | awk
'{print $3}'` is: `1.8.0_292`
>
> I think the problem is in the first line `Picked up JAVA_TOOL_OPTIONS:
-Djava.net.preferIPv4Stack=true`
>
> Is there any way to find the java version line and awk it?
I noticed this problem , I will handle it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]