jEdit Community - Resources for users of the jEdit Text Editor
JEdit with Mac OS Plugin fails to run on Mac OS 10.5, Java 6.0 (64-bit)
Submitted by theorik on Wednesday, 7 May, 2008 - 06:21
JEdit with Mac OS Plugin fails to run on Mac OS 10.5, Java 6.0 (64-bit). Sometimes silently, sometimes a window appears, but without content and unusable. Removing the MacOS Plugin helps.

> 08:18:07 [error] PluginJAR: Error while starting plugin macos.MacOSPlugin
> 08:18:07 [error] PluginJAR: java.lang.NoClassDefFoundError: com/apple/cocoa/application/NSMenu
> 08:18:07 [error] PluginJAR: at macos.MacOSPlugin.start(Unknown Source)
> 08:18:07 [error] PluginJAR: at org.gjt.sp.jedit.PluginJAR.startPlugin(PluginJAR.java:1360)
> 08:18:07 [error] PluginJAR: at org.gjt.sp.jedit.PluginJAR.activatePlugin(PluginJAR.java:737)
> 08:18:07 [error] PluginJAR: at org.gjt.sp.jedit.PluginJAR.activatePluginIfNecessary(PluginJAR.java:807)
> 08:18:07 [error] PluginJAR: at org.gjt.sp.jedit.jEdit.main(jEdit.java:460)
> 08:18:07 [error] PluginJAR: Caused by: java.lang.ClassNotFoundException: com.apple.cocoa.application.NSMenu
> 08:18:07 [error] PluginJAR: at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> 08:18:07 [error] PluginJAR: at java.security.AccessController.doPrivileged(Native Method)
> 08:18:07 [error] PluginJAR: at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> 08:18:07 [error] PluginJAR: at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
> 08:18:07 [error] PluginJAR: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:288)
> 08:18:07 [error] PluginJAR: at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> 08:18:07 [error] PluginJAR: at org.gjt.sp.jedit.JARClassLoader.loadFromParent(JARClassLoader.java:469)
> 08:18:07 [error] PluginJAR: at org.gjt.sp.jedit.JARClassLoader.loadClass(JARClassLoader.java:86)
> 08:18:07 [error] PluginJAR: at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> 08:18:07 [error] PluginJAR: at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
> 08:18:07 [error] PluginJAR: ... 5 more
> 08:18:07 [error] ErrorListDialog$ErrorEntry: /Applications/jEdit/jars/MacOS.jar:
> 08:18:07 [error] ErrorListDialog$ErrorEntry: Cannot start: java.lang.NoClassDefFoundError: com/apple/cocoa/application/NSMenu
> 08:18:07 [error] ErrorListDialog$ErrorEntry: Try updating to a newer version of the plugin.
>

Thankful for any advice,
theorik
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
New Mac OS X Plugin for jEdit
by dannydk on Fri, 13/02/2009 - 17:37
Seph Soliman re-coded the plugin to support the API changes. The plugin can be downloaded at his blog post, New Mac OS X Plugin for jEdit.

I've been running it and it works great. Among the features are some Mac OS specific menu options, support for "Open with" from the Finder, captures unsaved documents on Quit, and best of all, my preferences, favorites, etc. are now saved properly.

Thanks Seph!
update 16 of Jdk 5
by daverjones on Mon, 20/10/2008 - 09:46
com/apple/cocoa/** are not present on my Mac after update to Jdk1.5.0_16
MacOSX.jar would have to be updated to fix it.
Seems Mac's announced it (way of,-) previously as freezing Cocoa support in Java.
This seems to be the next step (i didn't traced back if announced or not) apparently i'd been done first in j6 which few people had to use at first and which nobody used if he hadn't.
But i've gone mad after i found Java process launched from bash on background would now take focus as it shows in menu - either name of the class is displayed or anything that has launched it - except of bash etc. (but including Ant). Great improvement - i found no other way to workaround it than using applescript to hide the "application" immediately after launched. I am happy to have "About" option in menu of the undocumented class. Sure, there's a "Quit" there too, sort of useful... (whenever new song started to play from my midi collection of dance music i was typing into void after the "update")
You can try the mailing lists.
by elberry on Thu, 08/05/2008 - 01:37
You can try the mailing lists:
http://sourceforge.net/mail/?group_id=588

But, honestly, I doubt it'll get much attention considering the Java 6 distribution by Apple isn't finalized yet, and the SoyLatte isn't finalized either.

Sorry and goodluck.

Learn from the past. Live in the present. Plan for the future.
11101000
 
It's finalized
by Wavis on Thu, 08/05/2008 - 22:20
If you have a 64 bit intel mac you can download the Java 6 distro through Software Update. In fact, you may have already done so without knowing it. All compatible mac users should have Java 6 on their machine. To me that's pretty final.

That said, it isn't necessarily enabled. To do that requires running "/Applications/Utilities/Java/Java Preferences.app" and changing the order of preference.

Edit: Removing the MacOS plugin through the plugin manager seems to have fixed the problem for me as well, though I haven't done much with JEdit yet.
 
I don't know much about hardw
by elberry on Sat, 10/05/2008 - 06:19
I don't know much about hardware, but I believe that the core 2 duo are 64 bit, but the core duo's are only 32 bit. I don't know what the distribution looks like, but I'm betting that the majority of mac users out there don't have the brand new macs, and are still running 32 bit macs.

So, only offering Java 6 to NEW macs doesn't say finalized to me, otherwise they'd have an install for all 10.5.2 installs.

Regardless, you can get by without the Mac OS plugin, but you will miss some things, like the Menu Bar at the top of the display (outside of the jEdit window). I have this turned off on my jEdit anyway.

Also considering that jEdit just recently made Java 5 a requirement, I'm guessing that jEdit officially supported on Java 6 will be a ways off.

Again, I encourage you to bring your issues up on the mailing list or make a tracker item. This way when more of the mac developers upgrade their macs, or if Apple ever puts out a Java 6 for the rest of the world, they'll have issues to work on.

Please do not misunderstand me. I'm very glad someone is testing jEdit on Java 6 for Mac - someone needs to be a front runner. I'm only asking that you be patient, support will be there.

Learn from the past. Live in the present. Plan for the future.
11101000
User login
Browse archives
« March 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82338
Context Free Art (*.cfdg)   0.31   46042
JBuilder scheme   .001   18487
BBEdit scheme   1.0   18107
ColdFusion scheme   1.0   18015
R Edit Mode - extensive version   0.1   17461
Advanced HTML edit mode   1.0   16194
Matlab Edit Mode   1.0   16056
jEdit XP icons   1.0   15220
XP icons for jEdit   1.1   14281