sbt-native-packager
sbt-native-packager copied to clipboard
Forwarder script fails with class not found - Windows
Expected behaviour
sbt stage
or sbt universal:packageBin
generates fowarder script and additional main class should be succesfully executed by bat script
E.g. "sbt stage
generates a zip file"
Actual behaviour
forwarder bat script calls "main" script with main class parameter and execution results in error Error: could not find or load main class
Initial investigation suggest that during execution of "main" script launcher jar is used and for forwarder script APP_CLASSPATH
is empty
Information
- What sbt-native-packager are you using 1.3.21
- What sbt version 1.2.8
- What is your build system (e.g. Ubuntu, MacOS, Windows, Debian ) Windows
- What package are you building (e.g. docker, rpm, ...) zip file
- What version has your build tool (find out with e.g.
rpm --version
) N/A - What is your target system (e.g. Ubuntu 16.04, CentOS 7) Windows 10
Thanks for your bug report. Can you provide a build.sbt
to reproduce this? We have an integration test for multiple apps under windows, which passes CI. Can you make this one fail? Or create another test that demonstrates the issue?