Giter Club home page Giter Club logo

Comments (7)

federkasten avatar federkasten commented on May 28, 2024

Sorry for replying too late.

This appbundler-plugin has not functions to embed JRE runtime into an application bundle.

This requires users to install JRE by themselves.

from appbundle-maven-plugin.

chanomie avatar chanomie commented on May 28, 2024

It would be a nice enhancement to include. The app bundler ant task from Oracle let's you specify the runtime and it will bundle it all in so that it runs, even if people don't have the JRE installed.

Oracle even claims you can package you bundle and put it into the Mac App Store.

    <bundleapp outputdirectory="target"
        <runtime dir="${env.JAVA_HOME}" />
    </bundleapp>

from appbundle-maven-plugin.

federkasten avatar federkasten commented on May 28, 2024

OK. I will implement this function in the next step.

Needless to say, PR is welcome.

from appbundle-maven-plugin.

mrlimbic avatar mrlimbic commented on May 28, 2024

Yes please. I need to be able to bundle a JRE with my app from now on.

Now that apple isn't installing a JRE for users when required, it is confusing many users because even when the user downloads and installs the Oracle JRE, the system path isn't changed, so the app still doesn't find java!

from appbundle-maven-plugin.

chanomie avatar chanomie commented on May 28, 2024

As a temporary work around, you can use the Oracle bundler ant task to do it. I've actually got my main build working through Maven using this maven build task.

But to build the app with the JRE bundled into it, I'm still using a very simple build.xml with a single ant task in it.

<!-- https://java.net/downloads/appbundler/appbundler.html -->
<bundleapp outputdirectory="target"
    name="${app.name}"
    displayname="${app.name}"
    identifier="${app.mainclass}"
    icon="${app.icons}"
    mainclassname="${app.mainclass}" >

    <runtime dir="${env.JAVA_HOME}" / >
    <classpath dir="target/lib" />
    <option value="-Dapple.laf.useScreenMenuBar=true"/>
    <option value="-Dapple.awt.brushMetalLook=true"/>
</bundleapp>

from appbundle-maven-plugin.

mrlimbic avatar mrlimbic commented on May 28, 2024

There is an improved fork of appbundler here if you are interested. https://bitbucket.org/infinitekind/appbundler

However, it still has a limitation that I am waiting for a reply about. I need to be able to include a few extra executables and set the working directory so my app can call them. I can't see a way with appbundler. My app needs to call these executables.

I think I may be able to tweak jarbundler to include a JRE instead. jarbundler can already include files that must be executable. I am now seeing if I can fool it into copying a JRE into Plugins in the app bundle.

from appbundle-maven-plugin.

federkasten avatar federkasten commented on May 28, 2024

Thanks for #17 pull request, it becomes possible to bundle JRE. Check it out.

from appbundle-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.