Skip to content

./mill "example.scalalib.basic[1-simple].packaged.nodaemon.testForked" fails on Linux #5987

@arturaz

Description

@arturaz

It fails to run the produced .jar file with the ./out.jar syntax:

arturaz@razor:~/work/mill/out/example/scalalib/basic/1-simple/packaged/nodaemon/testForked.dest/sandbox/run-1> ./out/foo/assembly.dest/out.jar --text hello
executing:
java -jar ./out/foo/assembly.dest/out.jar


Missing argument: --text <str>
Expected Signature: main
  --text <str>

Which then produced a GUI popup with this:

The execution of 'java -jar ./out/foo/assembly.dest/out.jar failed'.
Maybe it doesn't containt the Main-Class in MANIFEST.MF
Run the above command in terminal to check the error output
Image

Java:

arturaz@razor:~/work/mill/out/example/scalalib/basic/1-simple/packaged/nodaemon/testForked.dest/sandbox/run-1> java --version
openjdk 21.0.3 2024-04-16 LTS
OpenJDK Runtime Environment Temurin-21.0.3+9 (build 21.0.3+9-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.3+9 (build 21.0.3+9-LTS, mixed mode, sharing)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions