From 1857a002b9a687f60bacd286c36ef405f671669a Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sat, 5 Oct 2024 21:31:14 +0200 Subject: Add shorten argument warning --- docs/ide-setup.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/ide-setup.md b/docs/ide-setup.md index 43707d1..2ac12ac 100644 --- a/docs/ide-setup.md +++ b/docs/ide-setup.md @@ -66,8 +66,8 @@ This error indicates that your Java Version does not support architectury. Fix t This error indicates that your Java version is too new. Fix this by setting your gradle JDK to use exactly java version 17, not something newer like Java 21. +### Error: Could not find or load main class `@C:\Some\Long\Path\1283814818228418813-argFile` - - +This error (with the `@` at the beginning of the missing main class and then some random path) happens when IntelliJ (or another IDE) tries to use Java 9+ exclusive argument shorting. In Java 9 and later you can use `@` to add arguments from a file. In Java 8 this will lead to errors, so you need to disable argfile shortening in your run configuration ("Shorten command line: none" in IntelliJ). -- cgit