yAsH
yAsH

Reputation: 3405

Creating a jar file from Scala project without using Sbt or Maven

I developed a Scala project using Scala eclipse Ide. How do I get a jar file from this project so that i can run the Scala classes present in the project through command line?

Upvotes: 1

Views: 670

Answers (1)

Björn Jacobs
Björn Jacobs

Reputation: 4272

You don't need to use SBT in order to create an executable jar file. A jar file is essentially only a zip file with a fixed internal structure. A jar file can contain a file "META-INF/MANIFEST.MF" with metdata like for instance the main class.

Refer to the Jar file article on Wikipedia for more information.

There is a command line tool called "jar" which can help you creating a valid Java Archive.

Upvotes: 3

Related Questions