JAVA_TOOL_OPTIONS Rider error

Answered

I am constantly seeing this error message:

The use of Java options environment variables detected. Such variables override IDE configuration files (*.vmoptions) and may cause performance and stability issues. Please consider deleting these variables: JAVA_TOOL_OPTIONS.

However the JAVA_TOOL_OPTIONS env var is not set anywhere and nor do I have a *.vmoptions file. 

I'd be interested to know what is causing this error to be generated as I am in fact having considerable stability issues with Rider.  FYI: I'm making heavy use of the F# interactive, 'hacking' about with some rather larger datasets. Oh, and I'm on an Ubuntu derivation (Pop OS).

0
13 comments

Please run set command in IntelliJ IDEA Terminal and provide the output.

0

Hi Petr,

Interesting if I run set from the IDE's terminal as you suggest I get this:

JAVA_TOOL_OPTIONS=-Djava.io.tmpdir=/home/michael/.var/app/com.jetbrains.Rider/cache/tmp/

but running it from my std. terminal it's not there.

So Rider is setting this and then complaining about it? Or could it be from a previous EAP installation?

Either way do you have any idea how I can prevent this from happening?

Thanks

0

Have you amended start scripts? 

0

Nope, no changes made to the startup script.

 

FYI: it's a new install of 2020.1 (recently upgraded to 2020.2).

 

Michael

0

Does it help if you remove IDEA and reinstall to a fresh folder?

0

Downloaded the latest archived  and extracted it to new folder and all is well if I use the start up shell script! I.e. no error message about the JAVA_TOOL_OPTIONS.

To start Rider I now use: $ nohup ./rider.sh & from the terminal, or, having created/edited  the jetbrains-rider.desktop application entry, from the Desktop.

Ideally I'd like to install Rider using a supported package manger which would do all this.

In my case it's using the unsupported Flatpak installer which seems to be implicated with the weird JAVA_TOOL_OPTIONS error warning.

But thank you very much for your help/suggestions here as I think we've resolved the issue now.

Michael

1

I got this in Intellij IDEA 2020.2.1 Ultimate Edition

JAVA_TOOL_OPTIONS='-Xbootclasspath/a:"C:\Program Files\Evidian\User Access\wgjpi.jar;C:\Program Files\Evidian\User Access\jaccess.jar" -Djavax
.accessibility.assistive_technologies=com.evidian.wg.jpi.WGJPI -Dwgjpi.properties.path="C:\Program Files\Evidian\User Access\wgjpi.properties"'
0

Interesting Rafal, so it's not just Rider on Linux!

I never actually found out what caused this to happen. 

Maybe @... will do some more digging and come up with an answer.

1

It's flatpack issue, please see https://github.com/flathub/com.jetbrains.Rider/blob/master/rider.sh which sets this option.

https://flathub.org/apps/details/com.jetbrains.Rider is not official:

NOTE: This wrapper is not verified by, affiliated with, or supported by JetBrains s.r.o.

Feel free to contact the package author or submit a pull request to get it fixed.

0

Rafal Kedziorski Your issue is unrelated, just remove JAVA_TOOL_OPTIONS environment variable and reboot.

0

Thanks Petr Rastegaev 

Just to reiterate:

To start Rider I now use: $ nohup ./rider.sh & from the terminal, or, having created/edited  the jetbrains-rider.desktop application entry, from the Desktop.

Ideally I'd like to install Rider using a supported package manger which would do all this.

Thanks again

Michael

0

Michael McDowell

I'm not Peter, but you can vote for https://youtrack.jetbrains.com/issue/IDEA-189485 if you need official flatpack support.

We already provide snap installer for Rider on Linux: https://www.jetbrains.com/help/rider/Installation_guide.html#snap.

0

I had the same problem. In my case, the environment variable was _JAVA_OPTIONS. IntelliJ kept showing me the message despite having removed it from the environment variables. The way I could finally request it was:
- Close IntelliJ.
- Open a CMD window in windows.
- Execute the "set" command.
- See if the environment variable appears in the list (in my case it kept appearing).
- Execute the command "set name_of_variable =" (in my case it was "set _JAVA_OPTIONS =", this removes all traces of the environment variable).
- Execute the "set" command again and verify that the variable no longer appears in the list.
- If so, open IntelliJ again. The message should no longer appear.

0

Please sign in to leave a comment.