I've checked and there aren't any non-64 bit versions of Java installed.
Windows 10 64bit
C:\Program Files (x86)\NCIDpop>java -version java version "1.8.0_111" Java(TM) SE Runtime Environment (build 1.8.0_111-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
Java Control Panel: Architecture: x86_64
Installer: jre-8u112-windows-x64.exe
Command Used(to test):
C:\Program Files (x86)\NCIDpop>java -jar NCIDpop.jar
Running on OS Windows 10 The path of the JAR is allegedly /C:/Program Files (x86)/NCIDpop/ Dec 20, 2016 11:10:50 PM java.util.prefs.WindowsPreferences <init> WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5. Exception in thread "AWT-EventQueue-0" java.lang.Error: There is an incompatible JNA native library installed on this system C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\ProgramData\Oracle\Java\javapath;C:\Python27\;C:\Python27\Scripts;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Python33\;C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\PROGRA~2\KEEPAS~1;C:\;C:\PROGRA~2\GTK2-R~1\bin;C:\utils\;C:\Progra~1\TrueCrypt\;C:\media-utils;C:\PROGRA~2\OPENIB~1;C:\PROGRA~1\MIA713~1\Windows\v7.0\Bin;C:\PROGRA~2\NOTEPA~1;C:\PROGRA~2\ROCKET~1\Themes;C:\PROGRA~2\ROCKET~1\Themes\Tools;C:\PROGRA~2\MKVTOO~1;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\UHD\bin;C:\PROGRA~2\PuTTY;C:\Progra~2\GnuWin32\bin;C:\Progra~2\Lynx\;c:\bin;C:\progra~2\Git\bin;C:\PROGRA~2\QUICKT~1\QTSystem\;C:\utils\GMusic;C:\utils\Console2;C:\progra~2\Handbrake;C:\utils\piano;C:\progra~2\PuTTY;C:\utils\bin\;C:\Program Files (x86)\GitExtensions\;C:\Windows\System32;C:\Program Files\VeraCrypt\;C:\Program Files (x86)\WinSCP\;C:\Program Files\Git\cmd;C:\Program Files\Gi;C:\adb\;C:\Program Files\FileBot\;C:\Program Files\Java\jre1.8.0_112\bin;C:\Users\william\AppData\Local\Programs\Python\Python35\Scripts\;C:\Users\william\AppData\Local\Programs\Python\Python35\;C:\Users\william\AppData\Roaming\npm;C:\Program Files\smartmontools\bin;C:\Users\william\AppData\Local\Microsoft\WindowsApps;.. To resolve this issue you may do one of the following: - remove or uninstall the offending library - set the system property jna.nosys=true - set jna.boot.library.path to include the path to the version of the jnidispatch library included with the JNA jar file you are using at com.sun.jna.Native.<clinit>(Native.java:146) at com.sun.jna.Pointer.<clinit>(Pointer.java:41) at com.sun.jna.Structure.<clinit>(Structure.java:1949) at com.lenderman.ncidpop.power.osspecific.WindowsPowerData.<clinit>(WindowsPowerData.java:28) at com.lenderman.ncidpop.power.PowerManagerHelper.initialize(PowerManagerHelper.java:254) at com.lenderman.ncidpop.power.PowerManagerHelper.<clinit>(PowerManagerHelper.java:70) at com.lenderman.ncidpop.preferences.NcidPopPreferencesDisplay.<init>(NcidPopPreferencesDisplay.java:310) at com.lenderman.ncidpop.NcidPopMainDisplay.initialize(NcidPopMainDisplay.java:1040) at com.lenderman.ncidpop.NcidPopMainDisplayController.<init>(NcidPopMainDisplayController.java:126) at NCIDpop$1.run(NCIDpop.java:146) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
Anonymous
Should be:
Hi William,
I don't know Java but I want to try to help because our NCIDpop developer is currently transitioning to a new job and relocating his family at the same time. I don't know when he'll have a chance to look at this.
java -jar NCIDpop.jar
If this works then it was likely a permission issue related to creating a Windows registry entry and running one time as Administrator should have fixed it. Quit NCIDpop and re-launch without running as Administrator.
java -jar NCIDpop.jar -J-Djava.io.tmpdir=%HOME%
java -jar NCIDpop.jar -J-Djna.nosys=true
Unfortunately all three give me the same thing as before.
Hi William,
Sounds like you have a 32 bit version of jnidispatch.dll on your system. Can you execute this command and post the results here:
C:> dir /s jnidispatch*
Thanks. Found the culprit with that. I use Filebot. I guess the most recent update packages that file with one of it's own. As soon as I removed the Filebot path from the system %PATH%, it fixed the problem.
Excellent. Future versions of NCIDpop won't error out and crash since I feel that power detection capability is a minor feature and execution should continue if this problem occurs for other users. I have modified the software and committed changes acordingly.