[go: up one dir, main page]

Menu

#3074 jEdit does not start on Leopard with Java 1.6 as default

severe bug
closed-fixed
6
2011-02-09
2008-04-30
No

When setting 1.6 as default JVM, jEdit does not start because the MacOS integration plugin is incompatible with the released 1.6 JVM from Apple as it does not contain the Cocoa-Java bridge which had been deprecated in 1.5.

Everything is ok if I remove the plugin file: jEdit.app/Contents/Resources/Java/jars/MacOS.jar
until a version not using the Cocoa-Java bridge is available.

Discussion

  • Trevor Harmon

    Trevor Harmon - 2008-05-31

    Logged In: YES
    user_id=720008
    Originator: NO

    I can confirm the existence of this bug and also the efficacy of the workaround (that is, removing the Mac OS plugin).

     
  • Trevor Harmon

    Trevor Harmon - 2008-05-31

    Logged In: YES
    user_id=720008
    Originator: NO

    A little bit more detail regarding this bug... It manifests as an UnsatisfiedLinkError, as shown in the system log:

    java.lang.UnsatisfiedLinkError: /usr/lib/java/libObjCJava.A.dylib:
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1702)
    at java.lang.Runtime.load0(Runtime.java:770)
    at java.lang.System.load(System.java:1005)
    at com.apple.cocoa.foundation.NSRuntime.loadLibrary(NSRuntime.java:127)
    at com.apple.cocoa.foundation.NSRuntime.(NSRuntime.java:35)
    at com.apple.cocoa.foundation.NSObject.(NSObject.java:27)
    at macos.MacOSPlugin.start(Unknown Source)
    at org.gjt.sp.jedit.PluginJAR.startPlugin(PluginJAR.java:1360)
    ...

    There has been talk of this bug in other places, namely here:

    http://lists.apple.com/archives/java-dev/2008/Apr/msg00280.html

    and here:

    http://lists.bluej.org/pipermail/bluej-discuss/2007-October/006482.html

     
  • Alan Ezust

    Alan Ezust - 2008-05-31

    Logged In: YES
    user_id=935841
    Originator: NO

    The workaround is: Remove the Mac OSX plugin if you use Java 1.6

    You still want Mac OSX plugin if you are using Java 1.5

    Kinda a bummer that there isn't one version of jedit that works fine on both 1.5 and 1.6 for the mac - is there a way to make the Mac OSX plugin disable itself when it is running in 1.6?

     
  • Heklaz

    Heklaz - 2008-08-10

    Logged In: YES
    user_id=56541
    Originator: NO

    Same problem with pre15

     
  • Seph Soliman

    Seph Soliman - 2008-08-10

    Logged In: YES
    user_id=831311
    Originator: NO

    The issue is known since the release of Java 1.6 x64. The issue is that which I described at http://mijav.dk/node/25

    I've been working on a new maxosx plugin recently which is now working nicely and will (at some point in the future) replace the old one since the old one incorporates a variety of features are now natively supported in java 6 for mac (i.e. the menubar).

    The features of the new plugin currently include:
    - Drag'n'drop'ing items onto the dock
    - Quitting properly (so shutting down isn't aborted due to a stale jedit
    application)
    - Opening a new view when no views are open (there's another tracker item for this one)
    - Using jEdits about dialog (application menu)
    - Using jEdits global preferences (application menu)

    Currently it is not a suitable drop-in replacement since it doesn't have all the features the existing one does such as "reveal in finder", service-integration and Open With integration. Some of these integration features are important to include so osx users don't have to think different about jedit than with any other program.

    Alan and I are currently looking into how we can distribute the correct plugin depending on jvm or if it may be backwards-compatible at least. If anyone wants a beta version of the plugin with the features described above I can send one explicitly so it may be tested or post it on my personal blog for download.

    Best regards,
    Seph

     
  • Seph Soliman

    Seph Soliman - 2008-08-10
    • priority: 5 --> 6
    • assigned_to: nobody --> scarlac
    • status: open --> open-accepted
     
  • Emanuel Sprung

    Emanuel Sprung - 2008-10-29

    The best workaround that worked for me ist this:

    Go to your application folder, CMD+I on your jEdit Application, check "Run in 32bit mode".

    Than jedit runs without removing any plugins. But, the bugs isn't solved by that, i know...

     
  • Evan Wright

    Evan Wright - 2011-02-09

    I believe this bug has been fixed for a while - scarlac's MacOSX plugin works with 1.6.

     
  • Alan Ezust

    Alan Ezust - 2011-02-09
    • status: open-accepted --> closed-fixed
     

Log in to post a comment.