I am tasked with deploying an old Eclipse RCP (Java 1.6) application with minimal or no changes to the code on macOS Mojave 10.14 64bit. The application hasn't been deployed in a long while, the last target was Mac OS X Snow Leopard 10.6.
The prime issue I have is that best results (full feature set) were obtained when changing the compile level of the app to Java 1.7, and circumventing this bug (where Mac complains no java is present when the JDK or JRE 1.7 or 1.8 was indeed correctly installed).
Bug report:
Thanks to this hack:
which only functions if you have the JDK installed, not the JRE. However this being a corporate shipping, the client would never accept the pre-requisite being the JDK when it should be the JRE.
As you can see from my comment on the answer, I've tried a bastardised application of this solution on the JRE by modifying what I thought where the equivalent files and paths, but this did not work.
So, to sum up the situation
What I have
The app will run if I:
Install the JDK
Apply this: https://apple.stackexchange.com/a/211033/324385
What I would like
For the application to start when I've:
Only installed JRE 1.7 or 1.8
Applied
Xfix that you suggest to me
