question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not load JIntellitype.dll from local file system or from inside JAR

See original GitHub issue
What steps will reproduce the problem?
1. Add JAR to Netbeans project
2. Make sure DLL is in project folder
3. Run through Netbeans IDE

What is the expected output? What do you see instead?
Expected:  Running with hotkey support

Instead: 

Exception in thread "AWT-EventQueue-0" 
com.melloware.jintellitype.JIntellitypeException: Could not load 
JIntellitype.dll from local file system or from inside JAR
    at com.melloware.jintellitype.JIntellitype.<init>(JIntellitype.java:114)
    at com.melloware.jintellitype.JIntellitype.getInstance(JIntellitype.java:177)
    at marketbot.SettingsWindow.<init>(SettingsWindow.java:32)
    at marketbot.MarketBot$2.run(MarketBot.java:129)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.io.IOException: FromJarToFileSystem could not load DLL: 
com/melloware/jintellitype/JIntellitype.dll
    at com.melloware.jintellitype.JIntellitype.fromJarToFs(JIntellitype.java:150)
    at com.melloware.jintellitype.JIntellitype.<init>(JIntellitype.java:105)
    ... 17 more
Caused by: java.lang.NullPointerException
    at com.melloware.jintellitype.JIntellitype.fromJarToFs(JIntellitype.java:146)
    ... 18 more

What version of the product are you using? On what operating system?

I'm using v1.3.9 on Windows 8.1.


Please provide any additional information below.

The following code is what I am using:

File f = new 
File("C:\\Users\\Christopher\\Documents\\NetBeansProjects\\MarketBot\\jintellity
pe-1.3.9\\JIntellitype.dll");
        if (f.exists())
            System.out.println("Library exists!");
        JIntellitype.setLibraryLocation(f);
        initComponents();
        JIntellitype.getInstance();
        JIntellitype.getInstance().registerHotKey(1, JIntellitype.MOD_CONTROL, (int)'0');


It worked all day yesterday, but after a computer reboot, it has stopped.  I 
have no idea what a reboot could have changed...

Also related: 
http://stackoverflow.com/questions/24481260/problems-adding-native-dlls-to-java-
runtime-jintellitype

Original issue reported on code.google.com by chriskin...@gmail.com on 30 Jun 2014 at 12:07

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
caelumablecommented, Dec 27, 2018
Well, I'm not entirely sure why, but I decided to install Java x64, switch my 
environment to 64-bit and use the 64 bit DLL and it now works perfectly.  I 
guess ~magic~ happened  :? 


^ Just for anyone else who has problems

Original comment by chriskin...@gmail.com on 30 Jun 2014 at 9:25

yeah,it’s a magic. I also solved my problem, I renamed the JIntellitype64.dll to JIntellitype.dll and put it into the system32 folder and put it into the project folder then the magic happend.

1reaction
mellowarecommented, Dec 27, 2018

Nice thanks for posting @caelumable

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - Could not load JIntellitype.dll from local file system or ...
I have loaded the jar file and I also pointed to the folder where the dlls are located through Referenced Libraries. Here is...
Read more >
Could not load JIntellitype.dll from local file system or ... - GitHub
In Eclipse. jintellitype-1.3.8.jar and JIntellitype.dll are in the project folder. jintellitype-1.3.8.jar has been added into the buildpath of the project.
Read more >
DocFetcher / Bugs / #1652 Could not load JIntellitype.dll from ...
#1652 Could not load JIntellitype.dll from local file system or from inside JAR. Milestone: v1.0_(example). Status: closed. Owner: nobody.
Read more >
[1.1.0] Win 7 64: Java 8: Could not load JIntellitype.dll
[error] WindowsHotkeyManager: JIntellitype problem: Could not load JIntellitype. dll from local file system or from inside JAR
Read more >
jintellitype - issue #13 - Google Code
JIntellitypeException : Could not load JIntellitype.dll from local file system or from inside JAR at com.melloware.jintellitype.JIntellitype.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found