Git Product home page Git Product logo

Comments (6)

fvarrui avatar fvarrui commented on July 30, 2024

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.

mudiadamz avatar mudiadamz commented on July 30, 2024

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.

fvarrui avatar fvarrui commented on July 30, 2024

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.

fvarrui avatar fvarrui commented on July 30, 2024

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.

mudiadamz avatar mudiadamz commented on July 30, 2024

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.

fvarrui avatar fvarrui commented on July 30, 2024

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)

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.