IntelliJ 14 missing HOME env. variable - intellij-idea

Whenever I start IntelliJ I see a notification balloon pointing out that I have an undeclared HOME variable. I can remove it but the same thing happens when I open IntelliJ again. I would like to fix it but I have no idea which HOME variable it is referring to.
The project is a Grails 2.4 project with a JDK7 on Windows 7.
Any suggestions?

Have you tried to set this enviroment variable in your windows system settings?
I think the name of this variable must be M2_HOME and must point to the path of your maven installation.
start -> right click on computer -> extended system settings -> enviroment
See also: http://maven.apache.org/download.cgi under section "Installation Instructions" and "Windows".

Related

How to update JAVA_HOME for the entire system, not just my terminal?

When I swap my JAVA_HOME to point to another env and close terminal and open it back up, I can echo it and it shows the right path.
However some other applications (name IntelliJ IDEA) will hold the first JAVA_HOME until I log my user out. Simply quitting IntelliJ IDEA like terminal doesn't work.
Why is this? I'm curious where does someone like IntelliJ actually get my JAVA_HOME in case I have one set in my bash_profile and my config_fish for instance. How does intellij (and other programs) know where to look?
Not Sure about IntelliJ but in eclipse, you can set your environment in Window > preference > java > Installed JRE and add your path their
Okay, so there are such things as system env variables but in this case intellij wasn't pulling these from my system. Intellij instead knows how to look for your bash_profile among other configs (also zsh config and fish config)
See the source here: https://github.com/JetBrains/intellij-community/blob/master/plugins/terminal/resources/jediterm-bash.in

IntelliJ 2017.1.4 - Refusing to open terminal window

I recently downloaded the latest version of IntelliJ Ultimate (at this time, it is 2017.1.4) for work.
For some reason, I cannot get it to open a new terminal window. When clicking the plus button here:
...nothing happens. Additionally, nothing shows up in the event log. I restarted IntelliJ, my computer, and did the "invalidate caches and restart" option.
Any ideas? Is there a log file I can look at?
It could be a known issue that is already fixed in 2017.2.
Another possible case is that the native terminal library fails to initialize on your system (check idea.log for exceptions). This can be caused by an antivirus or a corrupted IDE installation.
Thanks to #CrazyCoder for reminding me to check idea.log - the native terminal library, as well as other plugins, failed to initialize.
The root cause of the issue is that at my workplace, there is a security restriction to not run any executable that exists outside of C:\Program Files. As a result, IntelliJ cannot run certain plugins, jars, etc. that exist outside of that location, because it will attempt to execute them from your user directory.
To fix this, in IntelliJ, go to Help > Edit Custom Properties and point the config and system path to a known path where you can run executables, like so:
# custom IntelliJ IDEA properties
idea.config.path=C:\\Program Files\\JetBrains\\.IntelliJIdea2017.2\\config
idea.system.path=C:\\Program Files\\JetBrains\\.IntelliJIdea2017.2\\system
You will need to make sure to copy the contents of both directories to the new location. Hopefully this helps anyone else who runs into this issue.

IntelliJ switching between JBOSS_HOME

Using intelliJ 15 Ultimate on MAC Yosemite.
I have two Jboss installation, jboss-eap-6.4 and wildfly-10.1.0.Final.
Depending on what project I am working on I need the "Run/Debug Configuration" to choose the correct JBOSS_HOME.
My bash_profile :
export JBOSS_HOME=/usr/local/jboss-eap-6.4
I also added convenience way to change in the terminal
alias setEAP='JBOSS_HOME=/usr/local/jboss-eap-6.4'
alias setWILDFLY='export JBOSS_HOME=/usr/local/wildfly-10.1.0.Final'
In Intellij I have :
Every time I run one of the Run/Debug it chooses the JBOSS_HOME set in bash_profile.
/usr/local/wildfly-10.1.0.Final/bin/standalone.sh
WARNING: JBOSS_HOME may be pointing to a different installation - unpredictable results may occur.
JBOSS_HOME: /usr/local/jboss-eap-6.4
I tried to create an External Tool where I export JBOSS_HOME, but this does not work. Anyway I can switch between JBOSS installation ? This could also be applicable to JAVA_HOME
You do not need to create scripts, just go to the Startup/Connection tab and add the value to the list of environment variables.

Where is JBOSS_HOME variable set for Intellij

So I'm trying to run JBoss server in Intellij, but there's a conflict between JBOSS_HOME path that Intellij reads from somewhere and the actual path to Jboss folder that is set in Run/Debug Configuration.
The Run/Debug Configuration Jboss path used to be the same as JBOSS_HOME, but it has changed, and it looks like JBOSS_HOME didn't get updated.
There is no environmental variable called JBOSS_HOME, so I guess Intellij stores it's own variables somewhere.
I've already checked File->Settings->Appearance & Behaviour->Path Variables
but there's no JBOSS_HOME variable set. I've tried restarting Intellij with no luck.
Any ideas guys?
Those are set individually per each application server defined, be it JBoss, Tomcat or something else. You can access and create/modify/remove them in 2 ways:
File -> Settings -> Build, Execution, Deployment -> Application servers
From the Run/Debug configuration window. From the dropdown list in your upper right corner where the run/debug buttons are, select Edit configurations..., select your JBoss run configuration from the tree on the left and click on the Config button (which will open a window pretty much identical to the one at point 1.)

Intellij prompting for path variables "USER_HOME_GRAILS" and "USER_HOME_GRIFFON "

When I start my project in Intellij 9 (#IU-95.66) I see a red popup in the top right of my screen saying...
Load error: undefined path variables!
USER_HOME_GRAILS, USER_HOME_GRIFFON
are undefined. Fix it.
I do not have the Griffon/Grails plugins enabled and never have, why would I get this?
The project was created with Groovy plug-in enabled and it has stored these variables in the project file. Either enable the plug-in or remove the variables from the project file.
Creating the new project should also help. We have a related issue in our tracker, you may join it and provide more information.
I enabled the Grails/Griffon plugin and can confirm that it solved this exact issue. I had reinstalled Intellij on another machine and this is one issue I had when starting up a project that was created under a previous install.
Thanks.!