简体   繁体   中英

Run Java based Application on mac without having to install Java on it but using bundled JRE instead

I have Java-Maven project made on Eclipse RCP. The project runs fine using Java on the system. But I don't want the client to have to install Java to run that project. So, I have put jdk inside folder, removed Java from the system and played a little with its info.plist file. But everytime I try to run it, it asks to install Java. I am pretty sure I am making mistakes in info.plist but there might be something else I am missing.

PS - deployment in windows using bundled java works fine.

It seems eclipse on Mac requires a full JDK, so I don't know if having a full JDK (in place of a JRE..) depoyed in your bundle under "<eclipse install dir>/jre" will do the job (To be tested)
Ref: https://wiki.eclipse.org/Eclipse/Installation

If not, you can still bundle your app with a full JDK somewhere under your "<eclipse install dir>" and reference javaw in eclipse.ini , The "-vm" stanza accepts relative paths to javaw
Ref: https://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM