Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on

huangapple 未分类评论53阅读模式
英文:

Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on

问题

每当我在Kali上通过IntelliJ执行Java代码,或者在命令行中输入 java --version,我都会收到以下消息:

Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true

我在Google上搜索后找到了这个链接,其中描述了与我的情况完全相同的情形。但我所理解的是,这只是一条信息,而非错误,我可以取消设置 _JAVA_OPTIONS 环境变量。
我想知道的是,删除这个环境变量会不会造成任何问题?

我在上述链接中读到:“如果你删除了那个变量,信息就会消失。”
我不明白这是指会有任何损害,还是仅仅是说这个消息会消失?

最后,如何删除或取消设置这个 _JAVA_OPTIONS 变量?

更新

当我通过以下命令取消设置这个变量:

_SILENT_JAVA_OPTIONS="$_JAVA_OPTIONS"

unset _JAVA_OPTIONS

alias java='java "$_SILENT_JAVA_OPTIONS"'

  • 参考自这个链接,链接中的第二个答案 - 这条消息仍然会出现,但是会在Java程序的输出之后出现,而不是之前,就像之前那样!

英文:

Whenever I execute java code on intellij on kali, or type java --version in command line
I get this message

Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true.

I googled it and found this link that is exactly the same situation as me,
but what I understand is that it's an information not error and I can unset _JAVA_OPTIONS environmental variable.
What I'm asking for is that deleting this environmental variable will not cause any harm?

I read in the above link that If you remove that variable, information will be gone.
I didn't understand is that mean any damage or he just said that the message will gone!

And finally how to delete or unset this _JAVA_OPTIONS variable?

Update :

When I unset this variable by these commands

_SILENT_JAVA_OPTIONS="$_JAVA_OPTIONS"

unset _JAVA_OPTIONS

alias java='java "$_SILENT_JAVA_OPTIONS"'

-referenced from this link, the second answer- the message is still appear but after the output of the java program instead of before the output as it was!

huangapple
  • 本文由 发表于 2020年3月16日 07:58:35
  • 转载请务必保留本文链接:https://java.coder-hub.com/60698872.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定