I have created a .pkg installer for mac using pkgbuild and product build. Is there a way to bundle java jdk 8 along with the package. Say newer version of java is already installed on Mac and my application is compatible with jdk 8 only. Is there a way that bundled jdk can be put locally for that application ONLY without affecting the newer version of jdk already installed?
bundling jdk 8 with Mac OS X installer
467 Views Asked by Suriya At
1
There are 1 best solutions below
Related Questions in JAVA-8
- Why do we need to avoid mutations while coding? What is a mutation?
- Collecting inner List from outer List using Java 8
- How to get the index and max value of an array in one shot?
- Why did Java 8 introduce *Integer.sum(int a, int b)*
- How to stop a reduce operation mid way based on some condition?
- Create a pointcut based on annotation parameters
- How should I be using LambdaMetaFactory in my use case?
- How to sort an IntStream in reverse order
- ArrayOutOfBoundsException on Bean creation while using Java 8 constructs
- Java 8: stop reduction operation from examining all Stream elements
- In Ubuntu java -version gives Error occurred during initialization of VM
- Builder pattern with a Java 8 Stream
- resin project, jdk8 has a high cpu load ,but jdk7 not
- Center JoptionPaneMessageDialog in parent element of the source element that generated the event
- Implementing swing in jdk 1.8 using eclipse
Related Questions in PKGBUILD
- How to create pkg installer on yosemite
- Brew is installed but not identified as a command inside postinstall script of `pkgbuild` (MacOS)
- Why Pkgbuild Relocates the .app
- How to install openssl and sqlcipher using the script while creating the .pkg for the macOS
- Launch Agent unable to delete file and folder inside $HOME/Library/Containers/{yourAppFolder} macOS 14
- add a makepkg dlagent, which accept a non zero exit code
- bundling jdk 8 with Mac OS X installer
- How do I use "defaults write" correctly from pkgbuild / productbuild?
- File Ownership Modification by productbuild and pkgbuild
- Porting PackageMaker command line build installer to pkgbuild
- How do you specify a default install location to $HOME with pkgbuild?
- Creating a pkg installer for MacOs with the ability to install in the user's home directory
- PKGBUILD and makepkg: "warning: directory permissions differ"
- How to create your first archlinux package with PKGBUILD
- Can the pkgbuild window be made larger?
Related Questions in PRODUCTBUILD
- Where can I find out about a MacOS Product Distribution File?
- Mac app store productbuild
- bundling jdk 8 with Mac OS X installer
- How do I use "defaults write" correctly from pkgbuild / productbuild?
- File Ownership Modification by productbuild and pkgbuild
- Mac Installer package (productbuild) asks for admin password, but shouldn't
- mac: How to add a License.txt to a pkg built with productbuild using --component option?
- Creating a pkg installer for MacOs with the ability to install in the user's home directory
- Submitting to Mac App Store keeps giving "Invalid Signature" for app's installer
- What is the difference between pkgbuild vs productbuild?
- Create installer package with pdf license using productbuild
- unable to install a OSX package created with productbuild
- Signing and Archiving mac app with productbuild without using xcode for distributing app out side of Mac App Store
- OSX .pkg deletes other dev versions
- OS X Mavericks doesn't install flat packages
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can unzip OpenJDK 8 into a non-system folder (or folder of your application) and use it without affecting other already installed JDKs. There is no need for an installation or modification of global environment variables. Therefore, technically it is not a problem.
Note: Oracle's (not open) JDK has different rules regarding installation and distribution.
If starting your application produces an error:
This means it uses a JDK native library directly. (See bugs.openjdk.java.net/browse/JDK-8213362 for more information.) In order to solve this either:
-vm /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Homeas described in eclipse.org/forums/index.php/t/1102885or:
$JAVA_HOMEin a script for your app.