Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build a stand-alone scala executable

I am trying to create a standalone .exe file (or something equivalent) from a scala project I have started. I need to create this in such a way thet the person using the application has to do the least amount of work possible (double-click an installer or just the .exe file). What are my options?

like image 245
Henry Henrinson Avatar asked Jul 03 '12 14:07

Henry Henrinson


People also ask

How do I create a jar in Scala?

To build a jar file with your application in case if you have no external dependencies, you can run sbt package and it will build a hello-world_2. 11_1. 0. jar file with your code so you can run it with java -jar hello-world.


1 Answers

Take a look at ej-technologies the creators of JProfiler, they have a couple of products that might be useful to you, quoting from their product page:

  • install4j A cross platform Java installer that generates native installers and application launchers for your Java applications.

  • exe4j A Java exe maker that helps you integrate your Java applications into the Windows operating environment.

These are both commercial products and although I haven't used them, I have used JProfiler for many years.

like image 81
Don Mackenzie Avatar answered Oct 23 '22 19:10

Don Mackenzie