Menu

#989 JabRef on OS.X 10.7 / connection to LibreOffice

open
nobody
5
2015-05-27
2011-08-03
Anonymous
No

Jabref works fine on Lion,
provided you have Developper Tools, download the source
and run ant to build a fresh JabRef.

However, I can't get the ooplugin to work - when connecting to LibreOffice to connection attempt times out:

libjpipe.jnilib: mach-o, but wrong architecture

Looks like LibreOffice is 32bit and JabRef 64bit. How can I fix that?

Hannes

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: /Applications/LibreOffice.app/Contents/basis-link/ure-link/lib/libjpipe.jnilib: no suitable image found. Did find: /Applications/LibreOffice.app/Contents/basis-link/ure-link/lib/libjpipe.jnilib: mach-o, but wrong architecture
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1827)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1020)
at com.sun.star.lib.util.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:61)
at com.sun.star.lib.connections.pipe.PipeConnection.<clinit>(PipeConnection.java:62)
at com.sun.star.lib.connections.pipe.pipeConnector.connect(pipeConnector.java:119)
at com.sun.star.comp.connections.Connector.connect(Connector.java:123)
at com.sun.star.comp.urlresolver.UrlResolver$_UrlResolver.resolve(UrlResolver.java:120)
at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:282)
at net.sf.jabref.oo.OOBibBase.simpleBootstrap(OOBibBase.java:172)
at net.sf.jabref.oo.OOBibBase.<init>(OOBibBase.java:78)
at net.sf.jabref.oo.OOTestPanel.run(OOTestPanel.java:511)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at spin.Invocation.evaluate(Invocation.java:175)
at spin.off.SpinOffEvaluator$1.run(SpinOffEvaluator.java:108)
at java.lang.Thread.run(Thread.java:680)
CE> Warning: -nologo is deprecated. Use --nologo instead.
CE> Warning: -nodefault is deprecated. Use --nodefault instead.
CE> Warning: -norestore is deprecated. Use --norestore instead.
CE> Warning: -nolockcheck is deprecated. Use --nolockcheck instead.
CE> Warning: -accept=pipe,name=uno7712047863415887364;urp; is deprecated. Use --accept=pipe,name=uno7712047863415887364;urp; instead.</init></clinit>

Discussion

  • Anonymous

    Anonymous - 2011-08-08

    Start JabRef as an 32bit application:
    In e.g. `/Applications//JabRef.app/Contents/Resources/Java/`
    java -d32 -jar JabRef-2.7b2.jar
    Now JabRef can connect to the 32bit libraries in LibreOffice.

     

    Last edit: Anonymous 2014-04-09
  • Anonymous

    Anonymous - 2011-08-11

    Even easier, make JabRef.app start as a 32bit application by removing the 64bit part from the ApplicationStub: (http://lists.apple.com/archives/java-dev/2010/Jan/msg00120.html)

    `cd /Applications/JabRef.app/Contents/MacOS`

    `lipo JavaApplicationStub -remove x86_64 -output JavaApplicationStub`

     
  • Morten Omholt Alver

    Hi,

    is this with JabRef 2.6? If so, could you try to install the new JabRef 2.7? There is a difference in the OSX-integration component that is upgraded in 2.7, but I don't know if it would make a difference here.

     
  • Anonymous

    Anonymous - 2011-08-29

    This was with 2.6 and 2.7b2.

    For OS/X 10.7 (64bit) and LibreOffice/OpenOffice (still 32bit) also 2.7 needs
    to be a 32bit application:

    cd /Applications/JabRef.app/Contents/MacOS ; lipo JavaApplicationStub -remove x86\_64 -output JavaApplicationStub
    
     

    Last edit: Anonymous 2014-01-04
  • Nobody/Anonymous

    You completed certain nice points there. I did a search on the issue and found nearly all folks will go along with with your blog.
    diablo 3 gold http://www.bankofd3.com

     

Log in to post a comment.