1

I'm about to start creating a simple client application that needs to be fully self contained and super easy to install. I was looking around at what packaging / deployment solutions there are for Scala. The requirements at this stage is that it must contain its own JRE (rather than relying on the system one) and be really easy to install (native installers/scripts or a zip). At some point it will also need to auto-update but I can do this manually unless there is a better solution.

I came across SBT Native Packager. This looks really cool and seems to give me most of the things I want. However I couldn't see an obvious way to include a JRE though.

What is the best way to package and deploy Scala applications with a JRE and Scala Library? Can this solution also cater for in place upgrades.

steinybot
  • 5,491
  • 6
  • 37
  • 55

2 Answers2

2

Take a look at JDKPackagerPlugin. SBT Native Packager provides a nice API for this jdk tool. Requirement is java8 on your build system.

JDKPackager provides outputs for almost all major OS. However you can only build native package types on the respective native OS.

Muki
  • 3,513
  • 3
  • 27
  • 50
  • Ah ok I did see that but I thought it was something different. I didn't realise it could also generate native package types as well. I'll look into this and report back on how I get on. – steinybot Oct 02 '15 at 02:54
0

As scala is compiled to java bytecode anyway you could search for a java solution. Like this one: How to deliver my Java application with a particular JRE?

Community
  • 1
  • 1
Łukasz
  • 8,555
  • 2
  • 28
  • 51