Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update to IntelliJ 2017.1 causes JAVA_TOOL_OPTIONS to print

This morning I updated to IntelliJ IDEA 2017.1, when I run any of my tests, and even run a hello_world project I made, the console prints a message stating Picked up JAVA_TOOL_OPTIONS: -agentpath:"C:\windows\FireEye\JavaAgentDll_00.dll" after executing my program.

Also, when I try to run in debug mode I receive the error:

ERROR: JDWP unable to get necessary JVMTI capabilities.

If I run the program outside of IntelliJ I do not receive these errors. Is there a solution to resolving the error and is there a reason the JAVA_TOOL_OPTIONS is now "picked up"?

like image 665
DevelopingDeveloper Avatar asked Mar 24 '17 20:03

DevelopingDeveloper


3 Answers

Remove this environment variable from the system or configure the run/debug configuration to not include parent environment:

environment

like image 78
CrazyCoder Avatar answered Sep 29 '22 13:09

CrazyCoder


I solved this problem by adding the following command into idea.bat file:

UNSET JAVA_TOOL_OPTIONS

I'm running IntelliJ 2017.1 on Windows 7, and my idea.bat file is located at C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2017.1\bin folder.

The top 5 lines of my idea.bat file looks like these after the changes:

@ECHO OFF
UNSET JAVA_TOOL_OPTIONS 
::----------------------------------------------------------------------
:: IntelliJ IDEA startup script.
::----------------------------------------------------------------------
like image 21
George Yeoh Avatar answered Sep 29 '22 14:09

George Yeoh


I've had the same problem at work. This is probably FireEye knowledge rather than an IntelliJ answer, but I find that when I run IntelliJ as administrator the problem goes away without any settings changes, so this works if you have admin access to the development box.

Note that if you start IntelliJ from the IDEA toolbox then the toolbox also needs to be run as adminstrator.

like image 35
Keith So Avatar answered Sep 29 '22 13:09

Keith So