From: Steve J. <ste...@wi...> - 2021-01-05 18:02:58
|
Hi Phil, I wasn’t aware of this issue, but then I’m still on Mojave. I’ll probably skip Catalina and go straight to Big Sur sometime in the next 6 months. That issue has actually been reported on the universalJavaApplicationStub site and there’s an interesting discussion here (including a couple of possible fixes): https://github.com/tofi86/universalJavaApplicationStub/issues/85 <https://github.com/tofi86/universalJavaApplicationStub/issues/85> Steve. > On Jan 4, 2021, at 3:38 AM, Evans, Philip A. (Dr.) <pa...@le...> wrote: > > Hi Steve > > Thanks, that does indeed solve it. > > I hit another issue then which is that I don’t have proper disk access injedit, which seems related to this issue: > > https://developer.apple.com/forums/thread/132986 <https://developer.apple.com/forums/thread/132986> > > i.e. that the MacOS security prompts don’t fire up and get set for something with a script, rather than a compiled binary as the executable. > Hmmm. Maybe I’ll write a quick C++ code that as the executable and make it call the script… ! > > Or maybe the jEdit devs could update the Mac DMG to use JAVA_HOME instead of the system Java:) > > > Phil > >> On 1 Jan 2021, at 20:18, Steve Jakob <ste...@wi... <mailto:ste...@wi...>> wrote: >> >> Hello Dr. Phil, >> >> I’ve had similar issues on my Mac in the past where the jEdit application stub is unable to find the JRE or uses the wrong one. I was able to fix the problem by replacing the application stub with the “Universal Java application stub” found here: >> >> https://github.com/tofi86/universalJavaApplicationStub <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftofi86%2FuniversalJavaApplicationStub&data=04%7C01%7Cpae9%40leicester.ac.uk%7Cf6c614bb5d8146651ca408d8ae92767b%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C0%7C637451291381318411%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=fRGb3hBJjRrAAV1Wc%2FqseVPlBqjBl8D%2BpoIgN5qchW8%3D&reserved=0> >> >> It’s just a shell script rather than compiled code, so it’s easy to view and modify with a text editor (like jEdit, for example) if you’re familiar with BASH scripts. It also respects the JAVA_HOME variable, so it’s easy to run jEdit with the JRE of your choice. The info on that web site does a good job of explaining how it works. >> >> To set it up: >> >> - in the Mac Finder, navigate to the jEdit application (probably in your /Applications directory) >> - right-click and choose “Show Package Contents” >> - enter the “Contents” folder and then the “MacOS” folder >> - rename the existing “jedit” stub to something else (eg. “jedit.save”) in case you want to change back >> - save a copy of the “Universal Java application stub” into this folder and rename it to “jedit” >> >> The next time you try to start jEdit it will use the new stub. >> >> Good luck, >> >> Steve Jakob >> >>> On Dec 26, 2020, at 4:40 AM, Evans, Philip A. (Dr.) <pa...@le... <mailto:pa...@le...>> wrote: >>> >>> Hi everyone >>> >>> If I install jedit from the downloadable mac dmg file (which is prefereable to the universal installer for many reasons) it seems to insist on pocking up the oracle Java that shipped with MacOS, instead of the newer java I’ve installed from MacPorts. >>> >>> I have disabled the system java, set JAVA_HOME etc. Other Java apps seem to be picking up openjdk15 fine, but not jedit. If I use jedit 5.6.0 then it complains that it won’t work at all, and jedit 5.5.0 complains because I have a plug in that requires java>1.8 >>> >>> Does anyone know how to force jedit to use a specific installation of java? >>> >>> Thanks >>> >>> >>> Phil >>> >>> >>> ------------------------- >>> >>> Phil Evans, >>> Swift Development Scientist & Athena W-ISC Technical Lead >>> X-ray and Observational Astronomy Group, >>> University of Leicester >>> >>> Tel: +44 (0)116 252 5059 >>> Mobile: +44 (0)7780 980240 (work) >>> Mobile: +44 (0)7974 977723 (personal) >>> >>> Office: G49 Physics Building >>> >>> pa...@le... <mailto:pa...@le...> >>> >>> http://www.star.le.ac.uk/~pae9 <http://www.star.le.ac.uk/~pae9> >>> http://www.swift.ac.uk >>> >>> Follow me as a Swift scientist on Twitter: @swift_phil >>> http://www.star.le.ac.uk/~pae9/twitter >>> >>> >>> -- >>> ----------------------------------------------- >>> jEdit Users' List >>> jEd...@li... >>> https://lists.sourceforge.net/lists/listinfo/jedit-users >> > > ------------------------- > > Phil Evans, > Swift Development Scientist & Athena W-ISC Technical Lead > X-ray and Observational Astronomy Group, > University of Leicester > > Tel: +44 (0)116 252 5059 > Mobile: +44 (0)7780 980240 (work) > Mobile: +44 (0)7974 977723 (personal) > > Office: G49 Physics Building > > pa...@le... <mailto:pa...@le...> > > http://www.star.le.ac.uk/~pae9 > http://www.swift.ac.uk > > Follow me as a Swift scientist on Twitter: @swift_phil > http://www.star.le.ac.uk/~pae9/twitter > > -- > ----------------------------------------------- > jEdit Users' List > jEd...@li... > https://lists.sourceforge.net/lists/listinfo/jedit-users |