Menu

#2324 M1 / M2 Macbook Eclipse Error

v1.0_(example)
wont-fix
nobody
None
1
2023-04-14
2023-04-06
Anonymous
No

program.name=LiveSaver 2023
program.version=Unspecified
program.build=Unspecified
program.portable=true
java.runtime.name=OpenJDK Runtime Environment
java.runtime.version=17.0.6+10
java.version=17.0.6
sun.arch.data.model=64
os.arch=aarch64
os.name=Mac OS X
os.version=13.2.1
user.language=en
java.lang.UnsatisfiedLinkError: no jnotify in java.library.path: /Users/gnanavel/eclipse-workspace/DocFetcher-1.1/lib/jxgrabkey
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2429)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:818)
at java.base/java.lang.System.loadLibrary(System.java:1989)
at net.contentobjects.jnotify.macosx.JNotify_macosx.<clinit>(JNotify_macosx.java:13)
at net.contentobjects.jnotify.macosx.JNotifyAdapterMacOSX.<init>(JNotifyAdapterMacOSX.java:98)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128)
at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347)
at java.base/java.lang.Class.newInstance(Class.java:645)
at net.contentobjects.jnotify.JNotify.<clinit>(JNotify.java:80)
at net.sourceforge.docfetcher.model.SimpleJNotifyListener.addWatch(SimpleJNotifyListener.java:69)
at net.sourceforge.docfetcher.model.IndexRegistry.load(IndexRegistry.java:428)
at net.sourceforge.docfetcher.gui.Application$6.run(Application.java:567)</clinit></init></clinit>

Discussion

  • Nam-Quang Tran

    Nam-Quang Tran - 2023-04-07

    Hi,

    I assume you're trying to set up DocFetcher on macOS in Eclipse. Please check that you've followed the instructions in the readme.txt exactly. In particular, this section:

    In the Run configuration:

    • Main > Main class: net.sourceforge.docfetcher.gui.Application
    • Required Arguments > VM arguments
      Windows:
      -Djava.library.path="lib/jnotify;lib/jintellitype"
      Linux:
      -Djava.library.path="lib/jnotify:lib/jxgrabkey"
      Mac OS X:
      -Djava.library.path="lib/jnotify"
      -XstartOnFirstThread
    • Optional VM argument: -enableassertions
    • Classpath > add the folder "dist/lang" to the classpath (Advanced... > Add Folders).

    Best regards
    q:-) <= Quang

     
  • Nam-Quang Tran

    Nam-Quang Tran - 2023-04-14
    • status: open --> wont-fix
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB