Broccoli
Broccoli

Reputation: 1319

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.

Error describind the conflict

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?

Upvotes: 3

Views: 6100

Answers (1)

Morfic
Morfic

Reputation: 15528

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:

  1. File -> Settings -> Build, Execution, Deployment -> Application servers

Application servers config window

  1. 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.)

Run/DEbug configuration window

Upvotes: 4

Related Questions