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?
Related Questions in JAVA-8
- Java control panel glitching or becomes yellowish
- Uneven Load Distribution in Kubernetes Pods with Multithreaded Execution using fork join pool
- test result: Error. Program `sh' timed out (timeout set to 480000ms, elapsed time including timeout handling was 480002ms)
- java.net.ConnectException: Connection timed out: no further information Java to SOAP
- Java Stream, Need to update list of list objects
- Setting up different Java class fields value by a single value on some counter value
- feign client Spring boot
- `TYPE_USE` vs `TYPE` vs `TYPE_PARAMETER` annotations
- Error faced in trying to install Java 8 on Raspberry Pi 4B
- Grouping by multiple fields and counting using in Java 8
- How to customize mention notifications in liferay 7.3.5
- Without _JAVA_OPTIONS and JAVA_TOOL_OPTIONS, whether LeanFT will work or not?
- How to build a CriteriaQuery from SQL query
- From a string I am manually setting the date and time in calendar, for the other days it is working fine but for 28 and 29 Feb it is setting wrong val
- Sort strings containing numbers, chars and ponctuations in ”human readable order”
Related Questions in PKGBUILD
- pkgbuild produces a package that fails to install
- How to debug installation of self-made package
- How to get trusted timestamp value for a signed pkg in macOS?
- Launch Agent unable to delete file and folder inside $HOME/Library/Containers/{yourAppFolder} macOS 14
- How to install openssl and sqlcipher using the script while creating the .pkg for the macOS
- copy a file to user document folder while installing a package created with pkgbuild command
- How to make a nodeJS into an executable that doesn't show the prompt
- Getting user input during a .pkg installation process
- How can i create a .pkg mac installer for my binary?
- What is the difference between pkgbuild vs productbuild?
- How to build a pkg for partial patches with pkgbuild?
- How to add dyamic assets in PKG
- Run script when uninstalling aur package using PKGBUILD
- macos pkg: How to log bash errors
- MacOS app, altool validation fails with "Could not find the main bundle or the Info.plist is missing a CFBundleIdentifier"
Related Questions in PRODUCTBUILD
- pkgbuild produces a package that fails to install
- How to debug installation of self-made package
- What is the difference between pkgbuild vs productbuild?
- How to build a pkg for partial patches with pkgbuild?
- bundling jdk 8 with Mac OS X installer
- How do you create a PKG file using Xcode?
- Why can't product build find my Developer ID Installer certificate
- Pkgbuild and Productbuild PKG installs always under ROOT. Why?
- MacOs App Store pkg Productbuild -- add a property to product list (without Xcode)
- Creating a pkg installer for MacOs with the ability to install in the user's home directory
- Can a macOS package installation failure message be customized?
- Custom Apple Packages with new notarization requirement
- How to set background image in MacOS Mojave pkg installer using productbuild?
- The pkg created using productbuild is not getting installed on Applications/
- How can i convert my Installer build from packagesbuild to productbuild?
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?
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)
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.