在eclipse中安装lejos插件(无法加载jfantom.dll)

发布于 2024-12-02 23:39:16 字数 9579 浏览 1 评论 0原文

所以我试图让 lejos (乐高机器人的软件)在我的 eclipse 中工作,但是当我单击 eclipse 工具栏中的 lejos nxj 项目并选择上传固件时,我收到以下错误,

Building firmware image.
VM file: C:\Program Files (x86)\leJOS NXJ\bin\lejos_nxt_rom.bin
Menu file: C:\Program Files (x86)\leJOS NXJ\bin\StartUpText.bin
Magic string found at offset 0x40
VM size: 55712 bytes.
Menu size: 44132 bytes.
Total image size 99940/100352 bytes.
Locating device in firmware update mode.
flashing the firmware failed
lejos.pc.comm.NXTCommException: cannot load library C:\Program Files (x86)\leJOS NXJ\lib\pc\native\jfantom.dll
Caused by lejos.util.jni.JNIException: cannot load library C:\Program Files (x86)\leJOS NXJ\lib\pc\native\jfantom.dll
Caused by java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\leJOS NXJ\lib\pc\native\jfantom.dll: Can't find dependent libraries
See Eclipse error log for detailed stack trace.

任何人都知道发生了什么。我检查了目录,文件就在那里...... 这是来自 eclipse 的日志文件的内容

!SESSION 2011-09-03 13:11:11.541 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.ui 4 4 2011-09-03 13:23:11.783
!MESSAGE Invalid preference page path: XML Syntax
!SESSION 2011-09-03 13:23:13.777 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86_64

!ENTRY org.lejos.nxt.ldt 4 0 2011-09-03 13:29:50.136
!MESSAGE library jfantom.dll (windows/x86_64) was not found in C:\Program Files (x86)\leJOS NXJ\lib\pc\native
!STACK 0
lejos.pc.comm.NXTCommException: library jfantom.dll (windows/x86_64) was not found in C:\Program Files (x86)\leJOS NXJ\lib\pc\native
    at lejos.pc.comm.NXTCommFactory.createNXTComm(NXTCommFactory.java:64)
    at lejos.pc.comm.NXTSamba.search(NXTSamba.java:134)
    at lejos.pc.tools.NXJFlashUpdate.openSambaDevice(NXJFlashUpdate.java:209)
    at lejos.pc.tools.NXJFlash.openDevice(NXJFlash.java:65)
    at lejos.pc.tools.NXJFlash.run(NXJFlash.java:142)
    at lejos.pc.tools.NXJFlash.start(NXJFlash.java:191)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.lejos.nxt.ldt.util.LeJOSNXJUtil.invokeTool(LeJOSNXJUtil.java:400)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction.flashFirmware(UploadFirmwareAction.java:58)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction.access$0(UploadFirmwareAction.java:44)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction$1.run(UploadFirmwareAction.java:37)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: lejos.util.jni.JNIException: library jfantom.dll (windows/x86_64) was not found in C:\Program Files (x86)\leJOS NXJ\lib\pc\native
    at lejos.util.jni.JNILoader.loadLibrary(JNILoader.java:117)
    at lejos.pc.comm.NXTCommFantom.initialize0(NXTCommFantom.java:89)
    at lejos.pc.comm.NXTCommFantom.initialize(NXTCommFantom.java:96)
    at lejos.pc.comm.NXTCommFactory.newNXTCommInstance(NXTCommFactory.java:92)
    at lejos.pc.comm.NXTCommFactory.createNXTComm(NXTCommFactory.java:62)
    ... 14 more

!ENTRY org.lejos.nxt.ldt 4 0 2011-09-03 13:30:42.966
!MESSAGE library jfantom.dll (windows/x86_64) was not found in C:\Program Files (x86)\leJOS NXJ\lib\pc\native
!STACK 0
lejos.pc.comm.NXTCommException: library jfantom.dll (windows/x86_64) was not found in C:\Program Files (x86)\leJOS NXJ\lib\pc\native
    at lejos.pc.comm.NXTCommFactory.createNXTComm(NXTCommFactory.java:64)
    at lejos.pc.comm.NXTSamba.search(NXTSamba.java:134)
    at lejos.pc.tools.NXJFlashUpdate.openSambaDevice(NXJFlashUpdate.java:209)
    at lejos.pc.tools.NXJFlash.openDevice(NXJFlash.java:65)
    at lejos.pc.tools.NXJFlash.run(NXJFlash.java:142)
    at lejos.pc.tools.NXJFlash.start(NXJFlash.java:191)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.lejos.nxt.ldt.util.LeJOSNXJUtil.invokeTool(LeJOSNXJUtil.java:400)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction.flashFirmware(UploadFirmwareAction.java:58)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction.access$0(UploadFirmwareAction.java:44)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction$1.run(UploadFirmwareAction.java:37)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: lejos.util.jni.JNIException: library jfantom.dll (windows/x86_64) was not found in C:\Program Files (x86)\leJOS NXJ\lib\pc\native
    at lejos.util.jni.JNILoader.loadLibrary(JNILoader.java:117)
    at lejos.pc.comm.NXTCommFantom.initialize0(NXTCommFantom.java:89)
    at lejos.pc.comm.NXTCommFantom.initialize(NXTCommFantom.java:96)
    at lejos.pc.comm.NXTCommFactory.newNXTCommInstance(NXTCommFactory.java:92)
    at lejos.pc.comm.NXTCommFactory.createNXTComm(NXTCommFactory.java:62)
    ... 14 more

!ENTRY org.lejos.nxt.ldt 4 0 2011-09-03 13:31:04.653
!MESSAGE library jfantom.dll (windows/x86_64) was not found in C:\Program Files (x86)\leJOS NXJ\lib\pc\native
!STACK 0
lejos.pc.comm.NXTCommException: library jfantom.dll (windows/x86_64) was not found in C:\Program Files (x86)\leJOS NXJ\lib\pc\native
    at lejos.pc.comm.NXTCommFactory.createNXTComm(NXTCommFactory.java:64)
    at lejos.pc.comm.NXTSamba.search(NXTSamba.java:134)
    at lejos.pc.tools.NXJFlashUpdate.openSambaDevice(NXJFlashUpdate.java:209)
    at lejos.pc.tools.NXJFlash.openDevice(NXJFlash.java:65)
    at lejos.pc.tools.NXJFlash.run(NXJFlash.java:142)
    at lejos.pc.tools.NXJFlash.start(NXJFlash.java:191)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.lejos.nxt.ldt.util.LeJOSNXJUtil.invokeTool(LeJOSNXJUtil.java:400)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction.flashFirmware(UploadFirmwareAction.java:58)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction.access$0(UploadFirmwareAction.java:44)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction$1.run(UploadFirmwareAction.java:37)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: lejos.util.jni.JNIException: library jfantom.dll (windows/x86_64) was not found in C:\Program Files (x86)\leJOS NXJ\lib\pc\native
    at lejos.util.jni.JNILoader.loadLibrary(JNILoader.java:117)
    at lejos.pc.comm.NXTCommFantom.initialize0(NXTCommFantom.java:89)
    at lejos.pc.comm.NXTCommFantom.initialize(NXTCommFantom.java:96)
    at lejos.pc.comm.NXTCommFactory.newNXTCommInstance(NXTCommFactory.java:92)
    at lejos.pc.comm.NXTCommFactory.createNXTComm(NXTCommFactory.java:62)
    ... 14 more

!ENTRY org.lejos.nxt.ldt 4 0 2011-09-03 13:37:49.689
!MESSAGE cannot load library C:\Program Files (x86)\leJOS NXJ\lib\pc\native\jfantom.dll
!STACK 0
lejos.pc.comm.NXTCommException: cannot load library C:\Program Files (x86)\leJOS NXJ\lib\pc\native\jfantom.dll
    at lejos.pc.comm.NXTCommFactory.createNXTComm(NXTCommFactory.java:64)
    at lejos.pc.comm.NXTSamba.search(NXTSamba.java:134)
    at lejos.pc.tools.NXJFlashUpdate.openSambaDevice(NXJFlashUpdate.java:209)
    at lejos.pc.tools.NXJFlash.openDevice(NXJFlash.java:65)
    at lejos.pc.tools.NXJFlash.run(NXJFlash.java:142)
    at lejos.pc.tools.NXJFlash.start(NXJFlash.java:191)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.lejos.nxt.ldt.util.LeJOSNXJUtil.invokeTool(LeJOSNXJUtil.java:400)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction.flashFirmware(UploadFirmwareAction.java:58)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction.access$0(UploadFirmwareAction.java:44)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction$1.run(UploadFirmwareAction.java:37)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: lejos.util.jni.JNIException: cannot load library C:\Program Files (x86)\leJOS NXJ\lib\pc\native\jfantom.dll
    at lejos.util.jni.JNILoader.loadLibrary(JNILoader.java:112)
    at lejos.pc.comm.NXTCommFantom.initialize0(NXTCommFantom.java:89)
    at lejos.pc.comm.NXTCommFantom.initialize(NXTCommFantom.java:96)
    at lejos.pc.comm.NXTCommFactory.newNXTCommInstance(NXTCommFactory.java:92)
    at lejos.pc.comm.NXTCommFactory.createNXTComm(NXTCommFactory.java:62)
    ... 14 more
Caused by: java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\leJOS NXJ\lib\pc\native\jfantom.dll: Can't find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.load0(Unknown Source)
    at java.lang.System.load(Unknown Source)
    at lejos.util.jni.JNILoader.loadLibrary(JNILoader.java:103)
    ... 18 more

So I am trying to get lejos (the software for lego robots) to work in my eclipse but when i click the lejos nxj item in the eclipse toolbar and select upload firmware I get the following error

Building firmware image.
VM file: C:\Program Files (x86)\leJOS NXJ\bin\lejos_nxt_rom.bin
Menu file: C:\Program Files (x86)\leJOS NXJ\bin\StartUpText.bin
Magic string found at offset 0x40
VM size: 55712 bytes.
Menu size: 44132 bytes.
Total image size 99940/100352 bytes.
Locating device in firmware update mode.
flashing the firmware failed
lejos.pc.comm.NXTCommException: cannot load library C:\Program Files (x86)\leJOS NXJ\lib\pc\native\jfantom.dll
Caused by lejos.util.jni.JNIException: cannot load library C:\Program Files (x86)\leJOS NXJ\lib\pc\native\jfantom.dll
Caused by java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\leJOS NXJ\lib\pc\native\jfantom.dll: Can't find dependent libraries
See Eclipse error log for detailed stack trace.

anybody has an idea whats going on. I check the directory and the file is there...
This is the content of log file from eclipse

!SESSION 2011-09-03 13:11:11.541 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.ui 4 4 2011-09-03 13:23:11.783
!MESSAGE Invalid preference page path: XML Syntax
!SESSION 2011-09-03 13:23:13.777 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86_64

!ENTRY org.lejos.nxt.ldt 4 0 2011-09-03 13:29:50.136
!MESSAGE library jfantom.dll (windows/x86_64) was not found in C:\Program Files (x86)\leJOS NXJ\lib\pc\native
!STACK 0
lejos.pc.comm.NXTCommException: library jfantom.dll (windows/x86_64) was not found in C:\Program Files (x86)\leJOS NXJ\lib\pc\native
    at lejos.pc.comm.NXTCommFactory.createNXTComm(NXTCommFactory.java:64)
    at lejos.pc.comm.NXTSamba.search(NXTSamba.java:134)
    at lejos.pc.tools.NXJFlashUpdate.openSambaDevice(NXJFlashUpdate.java:209)
    at lejos.pc.tools.NXJFlash.openDevice(NXJFlash.java:65)
    at lejos.pc.tools.NXJFlash.run(NXJFlash.java:142)
    at lejos.pc.tools.NXJFlash.start(NXJFlash.java:191)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.lejos.nxt.ldt.util.LeJOSNXJUtil.invokeTool(LeJOSNXJUtil.java:400)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction.flashFirmware(UploadFirmwareAction.java:58)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction.access$0(UploadFirmwareAction.java:44)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction$1.run(UploadFirmwareAction.java:37)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: lejos.util.jni.JNIException: library jfantom.dll (windows/x86_64) was not found in C:\Program Files (x86)\leJOS NXJ\lib\pc\native
    at lejos.util.jni.JNILoader.loadLibrary(JNILoader.java:117)
    at lejos.pc.comm.NXTCommFantom.initialize0(NXTCommFantom.java:89)
    at lejos.pc.comm.NXTCommFantom.initialize(NXTCommFantom.java:96)
    at lejos.pc.comm.NXTCommFactory.newNXTCommInstance(NXTCommFactory.java:92)
    at lejos.pc.comm.NXTCommFactory.createNXTComm(NXTCommFactory.java:62)
    ... 14 more

!ENTRY org.lejos.nxt.ldt 4 0 2011-09-03 13:30:42.966
!MESSAGE library jfantom.dll (windows/x86_64) was not found in C:\Program Files (x86)\leJOS NXJ\lib\pc\native
!STACK 0
lejos.pc.comm.NXTCommException: library jfantom.dll (windows/x86_64) was not found in C:\Program Files (x86)\leJOS NXJ\lib\pc\native
    at lejos.pc.comm.NXTCommFactory.createNXTComm(NXTCommFactory.java:64)
    at lejos.pc.comm.NXTSamba.search(NXTSamba.java:134)
    at lejos.pc.tools.NXJFlashUpdate.openSambaDevice(NXJFlashUpdate.java:209)
    at lejos.pc.tools.NXJFlash.openDevice(NXJFlash.java:65)
    at lejos.pc.tools.NXJFlash.run(NXJFlash.java:142)
    at lejos.pc.tools.NXJFlash.start(NXJFlash.java:191)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.lejos.nxt.ldt.util.LeJOSNXJUtil.invokeTool(LeJOSNXJUtil.java:400)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction.flashFirmware(UploadFirmwareAction.java:58)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction.access$0(UploadFirmwareAction.java:44)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction$1.run(UploadFirmwareAction.java:37)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: lejos.util.jni.JNIException: library jfantom.dll (windows/x86_64) was not found in C:\Program Files (x86)\leJOS NXJ\lib\pc\native
    at lejos.util.jni.JNILoader.loadLibrary(JNILoader.java:117)
    at lejos.pc.comm.NXTCommFantom.initialize0(NXTCommFantom.java:89)
    at lejos.pc.comm.NXTCommFantom.initialize(NXTCommFantom.java:96)
    at lejos.pc.comm.NXTCommFactory.newNXTCommInstance(NXTCommFactory.java:92)
    at lejos.pc.comm.NXTCommFactory.createNXTComm(NXTCommFactory.java:62)
    ... 14 more

!ENTRY org.lejos.nxt.ldt 4 0 2011-09-03 13:31:04.653
!MESSAGE library jfantom.dll (windows/x86_64) was not found in C:\Program Files (x86)\leJOS NXJ\lib\pc\native
!STACK 0
lejos.pc.comm.NXTCommException: library jfantom.dll (windows/x86_64) was not found in C:\Program Files (x86)\leJOS NXJ\lib\pc\native
    at lejos.pc.comm.NXTCommFactory.createNXTComm(NXTCommFactory.java:64)
    at lejos.pc.comm.NXTSamba.search(NXTSamba.java:134)
    at lejos.pc.tools.NXJFlashUpdate.openSambaDevice(NXJFlashUpdate.java:209)
    at lejos.pc.tools.NXJFlash.openDevice(NXJFlash.java:65)
    at lejos.pc.tools.NXJFlash.run(NXJFlash.java:142)
    at lejos.pc.tools.NXJFlash.start(NXJFlash.java:191)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.lejos.nxt.ldt.util.LeJOSNXJUtil.invokeTool(LeJOSNXJUtil.java:400)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction.flashFirmware(UploadFirmwareAction.java:58)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction.access$0(UploadFirmwareAction.java:44)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction$1.run(UploadFirmwareAction.java:37)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: lejos.util.jni.JNIException: library jfantom.dll (windows/x86_64) was not found in C:\Program Files (x86)\leJOS NXJ\lib\pc\native
    at lejos.util.jni.JNILoader.loadLibrary(JNILoader.java:117)
    at lejos.pc.comm.NXTCommFantom.initialize0(NXTCommFantom.java:89)
    at lejos.pc.comm.NXTCommFantom.initialize(NXTCommFantom.java:96)
    at lejos.pc.comm.NXTCommFactory.newNXTCommInstance(NXTCommFactory.java:92)
    at lejos.pc.comm.NXTCommFactory.createNXTComm(NXTCommFactory.java:62)
    ... 14 more

!ENTRY org.lejos.nxt.ldt 4 0 2011-09-03 13:37:49.689
!MESSAGE cannot load library C:\Program Files (x86)\leJOS NXJ\lib\pc\native\jfantom.dll
!STACK 0
lejos.pc.comm.NXTCommException: cannot load library C:\Program Files (x86)\leJOS NXJ\lib\pc\native\jfantom.dll
    at lejos.pc.comm.NXTCommFactory.createNXTComm(NXTCommFactory.java:64)
    at lejos.pc.comm.NXTSamba.search(NXTSamba.java:134)
    at lejos.pc.tools.NXJFlashUpdate.openSambaDevice(NXJFlashUpdate.java:209)
    at lejos.pc.tools.NXJFlash.openDevice(NXJFlash.java:65)
    at lejos.pc.tools.NXJFlash.run(NXJFlash.java:142)
    at lejos.pc.tools.NXJFlash.start(NXJFlash.java:191)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.lejos.nxt.ldt.util.LeJOSNXJUtil.invokeTool(LeJOSNXJUtil.java:400)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction.flashFirmware(UploadFirmwareAction.java:58)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction.access$0(UploadFirmwareAction.java:44)
    at org.lejos.nxt.ldt.actions.UploadFirmwareAction$1.run(UploadFirmwareAction.java:37)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: lejos.util.jni.JNIException: cannot load library C:\Program Files (x86)\leJOS NXJ\lib\pc\native\jfantom.dll
    at lejos.util.jni.JNILoader.loadLibrary(JNILoader.java:112)
    at lejos.pc.comm.NXTCommFantom.initialize0(NXTCommFantom.java:89)
    at lejos.pc.comm.NXTCommFantom.initialize(NXTCommFantom.java:96)
    at lejos.pc.comm.NXTCommFactory.newNXTCommInstance(NXTCommFactory.java:92)
    at lejos.pc.comm.NXTCommFactory.createNXTComm(NXTCommFactory.java:62)
    ... 14 more
Caused by: java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\leJOS NXJ\lib\pc\native\jfantom.dll: Can't find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.load0(Unknown Source)
    at java.lang.System.load(Unknown Source)
    at lejos.util.jni.JNILoader.loadLibrary(JNILoader.java:103)
    ... 18 more

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

水水月牙 2024-12-09 23:39:16
  • 您安装了leJOS软件包吗?
  • 是否已完全安装?
  • 您是否将 eclipse 指向了正确的 32 位 JDK/JRE?
  • 你安装了幻象驱动吗?

eclipse/window/preferences/leJOS NXJ 中的 NXJ_HOME 是否指向 leJOS 的正确目录?

  • Did you install the leJOS software suite?
  • Did it install fully?
  • Did you point eclipse to the correct 32bit JDK/JRE?
  • Did you install the phantom driver?

Is NXJ_HOME in eclipse/window/preferences/leJOS NXJ pointing to the correct dir for leJOS?

浸婚纱 2024-12-09 23:39:16

java.lang.UnsatisfiedLinkError 告诉您缺少 jfantom.dll 的依赖项。
一定是你没有安装Fantom驱动。从 Mindstorms.com 下载并安装 Fantom 驱动程序(最新版本为 1.1.3):
http://mindstorms.lego.com/en-us/support/files /Driver.aspx

或使用 RobotC 人们提供的(当前为 1.2.0):
http://www.robotc.net/support/troubleshooting/fantom-driver.php

The java.lang.UnsatisfiedLinkError tells you, that a dependency of jfantom.dll is missing.
It must be the case, that you haven't installed the Fantom driver. Download and install the Fantom driver from mindstorms.com (the most recent version there is 1.1.3):
http://mindstorms.lego.com/en-us/support/files/Driver.aspx

or use that the RobotC people offer (currently 1.2.0):
http://www.robotc.net/support/troubleshooting/fantom-driver.php

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文