Skip to content

Shorten Command Line

jacklynlxq edited this page May 7, 2021 · 5 revisions

Why Does This Happen?

This issue happens due to the Windows terminal limit for the amount of words per row, it only occurs in Windows (since Linux or Mac has almost no limit to the length of the command line)

  • In java you include jar libraries by specifying them on the command line java -jar a.jar;b.jar;c.jar your.main.Class which leads to really long java commands in things as complex as DL4J.

Step-by-step Solutions to Shorten Command Line for a Particular File

  1. Go to task bar and hover over "Run".
  2. Click "Edit Configurations"

image

  1. Click the cell beside "Shorten command line"
  2. Select "classpath file"

image

  1. Click "Apply" and then "OK"
  2. Rerun the script. The script should be successfully compiled and run without this error.

Step-by-step Solutions To Shorten Command Line by Default

  1. Go to task bar and hover over "Run".
  2. Click "Edit Configurations"

image

  1. On left navigation bar, click "Templates" > "Application, and click the dropdown button beside "Shorten command line" and select "classpath file"

image

3.1 If your interface is this, click the "Modify options" and select "Shorten command line" image (2)

  1. Click "Apply" and then "OK"
  2. Rerun the script. The script should be successfully compiled and run without this error. This should shorten command line by default for other scripts too.
Clone this wiki locally