|
|
|
|
| Re: how do I bundle a jre with an RCP appl on Mac OSX [message #1126360 is a reply to message #1102156] |
Sat, 05 October 2013 09:06  |
Marcel A. Messages: 111 Registered: July 2009 |
Senior Member |
|
|
I think i found a running solution. After hours of searching the internet and dozens of unsuccessful tries i did the following:
I copied an installed JDK to my RCP folder, renamed it to jre and then adjusted my product *.ini file to use a different vm in a relative folder.
-vm
../../../jre/Contents/Home/jre/bin/java
-vmargs
-XX:MaxPermSize=256m
....etc.
It is important that after the -vm flag a linbreak occurs and it is written before the -vmargs arguments.
A relative path was important for me so that i can distribute the product.
After the first successful start i removed all files from the JDK Home folder except the jre folder.
I do not know why i have to copy the folder structure like this but it worked.
Maybee this approach also works with an JRE and a similar folder structure.
Here my folder structure as an overview and help:
....
....
MyApp
configuration
features
jre
...../Contents/
..................Home/
...........................jre
..................info.plist
..................MacOS
p2
plugins
readme
I hope this information also works for you.
[Updated on: Sat, 05 October 2013 11:57] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02598 seconds