Comments (6)
JavaPackager generates an optimized/reduced Java runtime environment for your app with jlink
, in order to bundle it with your app, but it only works with JDK9+. It may works with Java 8 if you use <bundleJre>false</bundleJre>
option, but JRE won't be bundled. However, I think it's possible to extend JavaPackager for copying the entire jre
folder from your JDK (C:\Program Files\Java\jdk1.8.0_211 in this case) to bundle it with your app, only when detects that you are using JDK8-. Thanks for giving a try to JavaPackager!
from javapackager.
so there's no plan to support jdk 8? I've tried java 9+ for my projects several times and end-up frustating myself
from javapackager.
Don't worry, I think it's easy to add support for JDK8 as I told you before: copying the entire jre folder into the bundle. I didn't make it before because I didn't need this feature.
from javapackager.
I've been doing some research and depending on the JDK provider, the JRE may be located in different places. If I could find out programatically where the current JRE is installed (independently from the JDK provider or operating system), it'd be very easy. Would you be worth an option in the plugin config where you specify the path to the directory where the JRE is installed? For instance: <jrePath>c:\Program files\Oracle\Java\jre1.8.0_211</jrePath>
, so if you specify this option, the use of jlink
wouldn't be necessary, and JRE would be added to the bundle from this path.
from javapackager.
To be honest i don't understand what jlink
did, yes adding jrePath
option would be ok for me. i just want to bundles my project into single executable installer, and JRE is bundled inside, no need user to installed java separately.
from javapackager.
I've added jrePath
option to the plugin. Try version 0.8.3. If it works and solves your problem, I'll close this issue. Please, don't forget to star this project! Thanks.
from javapackager.
Related Issues (20)
- After turning on administrator Required, there is no response after entering the password when starting under mac. HOT 14
- With "org.apache.poi" in my project, there is always "module not found" error occured HOT 17
- How to exclude certain jars from copyDependencies task (duplicate handling strategy) HOT 9
- mis/exe installation package custom installation path HOT 3
- Fat Jar doesn't seem to work as expected HOT 13
- How to make a clean terminal app for MacOS? HOT 5
- How can I set the singleInstance property of launch4j through a plugin HOT 3
- About GraalVM HOT 2
- when I try tro execute the .exe file, it repots "The application requires a java Runtime Environment" HOT 21
- How can I package for macOS with the demo ? https://github.com/fvarrui/JavaPackager/issues/409 HOT 1
- Erro โrequire java runtime environment......โ in 1.7.6-SNAPSHOT HOT 2
- Question (or bug) about PKCS11 keystore type HOT 13
- How to keep old data files when upgrading? HOT 10
- Resource loading exception HOT 5
- javapackager packaging and security HOT 1
- Plugin searches for some library `tool.jar` on Mac under hard coded, non-existing path and fails right away HOT 12
- I need help about that HOT 1
- Path resolution causes bundled jre to not be found on linux when building from windows HOT 15
- Incomplete set of modules for customized JRE HOT 4
- Duplicate symbol 'File:default_local.policy' found. This typically means that an Id is duplicated. HOT 4
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 javapackager.