Title: Packaging a particular version of java with my code
Tags: java
Question: I've built a standalone Java Maven app. I need a particular version of java for running my code e.g. 151.154.11.224. My target environment has an older version. E.g. 151.154.11.224.
For various reasons I'm unable to get the target system to update their version of java.
How do I just bundle a version of the jdk along with my jar?

Here is the accepted answer: What you're looking for is how ot create a self-contained application, this link is how you do it without any third part assistance. Another option is Launch4j, a third party wrapper.


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2020:00:03/07/20', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<java>', 'Title': 'Packaging a particular version of java with my code', 'ViewCount': 32, 'id': 60573106, 'user_AboutMe': None, 'user_AccountId': 17921830.0, 'user_DisplayName': 'Calal', 'user_Reputation': 23.0, 'user_Views': 4.0, 'user_id': 13021453.0}}