1
\$\begingroup\$

I've tried java -jar jarsplice.jar --help and "" /? which just launches the UI. I'd like my game to automatically be packaged into a single jar when it's built so it would be very useful to be able to call it from the command line.

e.g-

java -jar jarsplice.jar -jars "..." -natives "..." -output "..." -exe -sh -mac
\$\endgroup\$
10
  • 2
    \$\begingroup\$ Related question on stack overflow: command line parameters with JarSplice? \$\endgroup\$ Commented May 31, 2017 at 23:13
  • \$\begingroup\$ What does your build process look like? If you're using gradle, consider using this instead; jarsplice hasn't been updated in years afaik. And if you're not using gradle for your java project, you should consider doing so. \$\endgroup\$
    – bcrist
    Commented Jun 1, 2017 at 0:06
  • \$\begingroup\$ Asking if software X does Y is not the best fit for the site. I've reworded it so that you can get an answer, if there is such a thing. \$\endgroup\$
    – Vaillancourt
    Commented Jun 1, 2017 at 0:44
  • \$\begingroup\$ @doppelgreener They are not related, at all, the other question is asking if you can pass parameters through to the wrapped game. \$\endgroup\$
    – Shaun Wild
    Commented Jun 1, 2017 at 8:25
  • \$\begingroup\$ Or just use the maven:assembly plugin? \$\endgroup\$
    – dot_Sp0T
    Commented Jun 1, 2017 at 9:55

1 Answer 1

1
\$\begingroup\$

Answer: It's not possible

There are forks however that allow you to do this.

For example: https://github.com/lquesada/JarSplicePlus

\$\endgroup\$
1
  • 1
    \$\begingroup\$ Don't forget to mark your answer as Accepted if you're satisfied with it. \$\endgroup\$
    – DMGregory
    Commented Aug 9, 2017 at 19:01

Not the answer you're looking for? Browse other questions tagged .