Skip to content

Scala runner doesn't do executable jars #12569

@som-snytt

Description

@som-snytt

Compiler version

3.0.0

Minimized code

  snips sdk use scala 2.13.6

Using scala version 2.13.6 in this shell.
  snips scalac -d hi.jar hi.scala
  snips scala hi.jar
hello, world
  snips sdk use scala 3.0.0

Using scala version 3.0.0 in this shell.
  snips scalac -d hi.jar hi.scala
  snips scala hi.jar
Error: Could not find or load main class hi.jar
Caused by: java.lang.ClassNotFoundException: hi.jar
  snips scala -classpath hi.jar Main
hello, world

Output

Error: Could not find or load main class hi.jar

Expectation

Scala runner creates and runs an executable jar. It looks like it doesn't create META-INF/MANIFEST.MF.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions