Comments (7)
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.
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.
OK. I will implement this function in the next step.
Needless to say, PR is welcome.
from appbundle-maven-plugin.
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.
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.
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.
Thanks for #17 pull request, it becomes possible to bundle JRE. Check it out.
from appbundle-maven-plugin.
Related Issues (20)
- Open associated file and Splash Files HOT 2
- How to package resources in to "Contents/Resources"? HOT 1
- appbundle-maven-plugin/build.sh: clang: not found HOT 5
- Can't start app on OSX HOT 3
- NPE with version 1.2.0 HOT 4
- passing arguments to the application HOT 1
- Version 1.2.1 release? HOT 2
- Cannot run app bundler as part of maven module build HOT 2
- Doesn't handle genisoimage or mkisofs under Windows
- NPE throwed when setting the <javaLauncherName> HOT 1
- Enhancement: Symlink doesn't work under Linux
- Missing documentation about executable permissions HOT 1
- Doesn't build the DMG on macOS 10.12.6 HOT 3
- Use specific JVMVersion
- Skip missing HOT 3
- Java 9+ non-compatibility HOT 3
- Update for JDK 11 Needed HOT 3
- JVM options issue with macOS dark mode key/value
- Adding multiple JVMOptions app cannot start
- App won't run when compiled on a different computer HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appbundle-maven-plugin.