[jedit:bugs] #4123 macOS Jedit cannot find Java engine

Bobby Marks via jEdit-devel <[email protected]> Wed, 29 May 2024 21:42:59 -0000
Newsgroups gmane.editors.jedit.devel
Message-ID </p/jedit/bugs/4123/50fcb45f7561325f083d1bff938058d98015c2a0.bugs@jedit.p.sourceforge.net>
Hello Björn Kautler,

Could you please share a copy of  5.7pre1 version. Facing same problem with M3 Mac .

Error Message: This application requires that Java 11 or later be installed on your computer.

It successfully from terminal : java -jar /Applications/jEdit.app/Contents/java/jedit.jar
Also this one helped : https://apple.stackexchange.com/questions/426713/how-to-help-the-jedit-application-find-java


1. Install the ARM version of Java 17 from Oracle
2. Install jEdit 5.6 (Follow instructions to drag and drop to your Applications folder and Ctrl-Click it).
3. Download the precompiled binary of universalJavaApplicationStub  (https://github.com/tofi86/universalJavaApplicationStub/releases/)
4. Unzip it, and overwrite the binary /Applications/jEdit.app/Contents/MacOS/jedit with it i.e

cp ~/Downloads/universalJavaApplicationStub /Applications/jEdit.app/Contents/MacOS/jedit

5. Update the key JVMVersion in /Applications/jEdit.app/Contents/Info.plist using an editor like TextEdit to be 17.

<key>JVMVersion</key>
<string>17</string>

6. Launch jEdit


In Jedit I use highlight plugin frequently. But this is getting failed to load with error "Cannot start: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
Try updating to a newer version of the plugin."

I wanted to try both issues are fixed in new version 5.7.

Regards,
Bobby Marks
    


Attachments:

- [activity.log](https://sourceforge.net/p/jedit/bugs/_discuss/thread/a9e68e28ca/9aef/attachment/activity.log) (89.1 kB; application/octet-stream)


---

**[bugs:#4123] macOS Jedit cannot find Java engine**

**Status:** closed-fixed
**Group:** severe bug
**Created:** Fri Mar 17, 2023 09:04 AM UTC by Rene Vincent Jansen
**Last Updated:** Thu May 23, 2024 02:29 PM UTC
**Owner:** Björn Kautler


I installed Jedit (latest) from a macOS .dmg on Ventura 13.2.1. It complains it requires a Java 11 or higher; I have Java 19 on the path.


---

Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/jedit/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

-- 
-----------------------------------------------
jEdit Developers' List
[email protected]
https://lists.sourceforge.net/lists/listinfo/jedit-devel