

Run a pot from another pot
source link: https://www.codesd.com/item/run-a-pot-from-another-pot.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Run a pot from another pot
Re-writing this for clarity before I bounty it:
What I want to do is make a bootstrap loader for a program that is already made in (executable)jar form. This bootstrap program would have three simple goals during it's runtime:
Compare a local xml file for the target program to one that's hosted on a server (to make sure that they are the same version)
If they are not the same version, and the online version is newer, download the newer version.
Re-write the xml file to reflect this change.
Execute the second jar file (launch it as though you launched the executable).
The issue I'm having is with step number 4. I have found myself struggling to find a solid way to launch a jar from within my bootstrap program despite looking at UrlClassLoader and other libraries.
Due to some outside issues, JNLP / Web-start is not an option for this case.
TL;DR: I need to find a way to download / launch a jar from within a jar in order to update a program at the time the bootstrap is run.
Thanks!
Runtime.getRuntime().exec()
There are some pitfalls here though if your MyApp.jar will have any output.
Check the docs for details of how to properly use exec...
http://docs.oracle.com/javase/6/docs/api/java/lang/Process.html
And see this SO post about some of the pitfalls...
Java Runtime.exec()
Recommend
-
7
POT: Python Optimal Transport This open source Python library provide several solvers for optimization problems related to Optimal Transport for signal, image processing and machine learning. Website and documentation:
-
12
The All In One Honeypot Platform ? README.md T...
-
11
Interview with the Amazing Kellyn Pot’Vin-Gorman Kenneth Fisher,...
-
11
Java - How to access a packaged image in an applet pot advertisements I have created an applet jar. That jar contains an images in the followi...
-
6
Why General Inheritance is Flawed and How to Finally Fix itBy leveraging composition and the final keyword in the right way, you can improve your programming skills and become a better Java programmer. General inheritance, wh...
-
10
A Guile Steel smelting potBy Christine Lemmer-Webber on Sat 06 August 2022Last month I made a blogpost titled
-
5
Cloudflare Beta Introducing Cloudflare In March 2009, a group of the original team behind Project Honey Pot began working on a new idea. Dubbed Cloudflare
-
11
Twitter relaxes pot ad rules to lure in more advertisers by Barbara Ortutay...
-
9
跨平台的划词翻译软件-Pot – 开源派 pot(Translator of Pylogmon )是国人开源的划词翻译软件,支持多个
-
8
Justin Pot (@[email protected])Justin Pot@jhpot@ma...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK