Comments (5)
You just need to use the --release
option when compiling/building your jar to target an older version.
from update4j.
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.
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.
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.
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)
- Permission Issue: Default Bootstrap Archive Location HOT 9
- Make update.zip path confgurable HOT 1
- Deletion of files not present in config HOT 8
- getOldFiles takes a long time (too long?) HOT 22
- Basic issue of understanding HOT 25
- Working in offline mode with --local and --syncLocal HOT 3
- Communication between bootstrap and business application HOT 4
- config.update does not download anything and just stop the programs HOT 2
- Headless Setup with NGINX Basic Auth HOT 13
- proposal HOT 1
- NoSuchFileException reserved/config when there is nothing to update HOT 3
- Demo App doesn't run on Windows 11 and Java 19 HOT 4
- Connect/read timeouts too short on URLConnection HOT 1
- Propagating business applications' exit code through Bootstrap HOT 5
- Error running an SWT application HOT 8
- Support multiple architectures HOT 19
- Exception when download files. HOT 2
- Relative path in basePath? HOT 3
- Size of file does not match size in configuration HOT 6
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 update4j.