3

Each time i execute java code i get this message:
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true

enter image description here
This problem has solution for windows os but i can't find any solution for linux os.

  • 1
    Please add the text of the errors. Please don't use links to images. The text is missing from the question. The text on the picture is too small for some people to read. The text on the image cannot be indexed by search engines for future visitors. Also see [Why not upload images of code on SO when asking a question?](https://meta.stackoverflow.com/q/285551/608639) – jww Dec 25 '19 at 11:53

4 Answers4

6

I found a solution to this problem, I lost a lot of time of course. I'm definitely not sure what creates this situation, in my case it happened after installing NetBeans and changing the text display settings, I turned on anti-aliasin.

These settings are defined in these configuration files, just remove them:

  • /etc/X11/Xsession.d/90kali-themes.conf

  • /etc/environment.d/95kali-themes.conf

  • 1
    Good answer, but the variable still exists. And the file "/etc/X11/Xsession.d/90kali-themes.conf" doesn't exist yet in the newest version. – rios0rios0 Jul 02 '21 at 13:59
  • 1
    In the newest version 2021.3, it's `/etc/X11/Xsession.d/90kali-themes` (without `.conf`) – Jared Chu Sep 19 '21 at 08:25
2

Java Option disabling in terminal

if your using java11-jdk in linux this might be working for disabling the java option from displaying in terminal.

_SILENT_JAVA_OPTIONS="$_JAVA_OPTIONS" && unset _JAVA_OPTIONS &&  alias java='java "$_SILENT_JAVA_OPTIONS"'

Checkout the Screenshot Here

MartenCatcher
  • 2,713
  • 8
  • 26
  • 39
2

ON Kali Linux ANDROID STUDIO This information comes because an environment variable called _JAVA_OPTIONS setup by default. I solved it by Unseating the variable. **To unset the value of this variable, use unset _JAVA_OPTIONS.

After that Android Studio will no longer display the information and Android Studio will be able to build projects that were previously failing to build..

1

This is not warning, it is information.

It literally says that some settings were picked up from _JAVA_OPTIONS environmental variable. It is used to configure some switches "globally" for every java application that will be run in given environment. You must have this set either on system or user level. If you remove that variable, information will be gone.

Antoniossss
  • 31,590
  • 6
  • 57
  • 99