Skip to content

The generated runnable jar is not a fat jar (dependencies not included) #204

@salmonb

Description

@salmonb

Thanks for making this plugin.

I'm submitting a…

  • bug report
  • feature request
  • other

Short description of the issue/suggestion:

The generated application crashes. After investigation, it's because the runnable start generated by the plugin is not a fat jar (standalone application), it doesn't include the dependencies required by the application.

Steps to reproduce the issue/enhancement:

  1. Create an application with a dependency
  2. Run the plugin
  3. Try to run the generated runnable jar

What is the expected behavior?

The generated runnable jar should run as a standalone application.
It should be a fat jar with all dependencies required by the application included.

What is the current behavior?

The runnable jar crashes with a java.lang.ClassNotFoundException because it doesn't find the class required in the dependency.

Do you have outputs, screenshots, demos or samples which demonstrate the problem or enhancement?

It's a private project... If my description is not good enough, please let me know and I will try to create a simple reproducer.

What is the motivation / use case for changing the behavior?

Just make it work :)

Please tell us about your environment:

  • JavaPackager version: 1.6.6
  • OS version: macOS, Linux, Windows (I tested on different machines, same problem)
  • JDK version: 18
  • Build tool:
    • Maven
    • Gradle

Other information (e.g. related issues, suggestions how to fix, links for us to have context)

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixedIssue fixed and release pending

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions