Giter VIP home page Giter VIP logo

Comments (5)

mordechaim avatar mordechaim commented on June 12, 2024

You just need to use the --release option when compiling/building your jar to target an older version.

from update4j.

stirante avatar stirante commented on June 12, 2024

Well, that's sure some way of making it work, but does it mean, that as long as someone still uses older versions, I can't bump up the class version?

from update4j.

mordechaim avatar mordechaim commented on June 12, 2024

I'm missing a few points.

Copy the whole JDK to a separate folder

Are you saying you download the new JDK in a separate folder, or copy the existing installation?

Run update4j jar with copied JDK

Assuming update4j will run an update; so at this point we now have 3 JDK installations?

Of course due to new main JAR being compiled with newer JDK, it fails to run it and also fails to delete old libs.

I seem to miss something obvious here. You already have the new JDK but start your main jar in the old JDK, why?

from update4j.

stirante avatar stirante commented on June 12, 2024

I copy the existing runtime, that's in folder called image to a new folder called updateImage.

Next I run update4j jar with updateImage runtime. This will update all the required files while not interfering with any files, that an update is run with.

The last part means that I declared launcher in update XML. This will run whole application after update, but with updateImage. At this point, it fails to run the new jar due to unsupported class version.

from update4j.

mordechaim avatar mordechaim commented on June 12, 2024

Sorry for delay, but I'm not in the capacity at the moment to answer your question. It involves me to deeper understand your architecture, and I'm not ready for it.

As a pointer, you might look into Configuration::deleteOldFiles. I'm not sure this helps you in any way though.

from update4j.

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.