Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij 10.8 Command line is too long. Shorten command line in Maven

I have the latest version of intellij 2018.1.1 and I am running a very basic maven project. I get an error message as "Command line is too long" when I try to run main. I updated the run config to JAR Manifest and now intellij doesnt pick up the latest changes in my java files. I am assuming it picks up a pre-made jar and doesnt re-compile? I am trying to figure out how to get intellij to work.

like image 447
zooes Avatar asked Apr 12 '18 11:04

zooes


1 Answers

To fix this, Edit the configuration the Run/Debug job in Intellij and select an appropriate "Shorten Command line" value that makes sense for your environment. Then try running the test again. If you are not sure about the correct value, simply try each of them till you get it to work. Here's a screenshot and the value that worked for me on Windows.

enter image description here

like image 72
user6123723 Avatar answered Sep 19 '22 20:09

user6123723