Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access denied to the Library DLL #152

Closed
eriksonssilva opened this issue Sep 28, 2018 · 2 comments
Closed

Access denied to the Library DLL #152

eriksonssilva opened this issue Sep 28, 2018 · 2 comments

Comments

@eriksonssilva
Copy link

Hello all!
First of all, thanks in advance for any help provided!
I've started learning coding not a long while ago, but I always try a lot before seeking help other than google...
Today, I came across this: I have made a really simple tool to communicate with arduino, and in my PC it works flawlessly!
However in a friend's PC, it is not working...
He stated that he coudn't even load it...
Once I asked him to run "java -jar" in the file directory, we came across this:

`C:\Users\User\Desktop\Editor>java -jar user.jar
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: C:\Users
**User\AppData\Local\Temp\1538133067545-jSerialComm.dll: Accesso negato
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 com.fazecast.jSerialComm.SerialPort.(SerialPort.java:181)
at editor.interface1.(interface1.java:33)
at editor.interface1$1.run(interface1.java:236)
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.doIntersectionP
rivilege(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)

C:\Users\User\Desktop\Editor>`

Then I thought it could be related to privilege issues.
But I have run the program successfuly in a non-admin account...
I have searched on the internet and there is an info saying that some times windows will simply deny some permissions. While that's totally understandable , since windows messes a lot with this kind of stuff, I did not find any workaround for this issue, unfortunately.
We both use windows 7 professional, 64bits, if that's relevant.
I hope I have put all the needed info!
Thanks for your attention
cheers!

@hedgecrw
Copy link
Contributor

Please try again with the latest version of the library (lots of Windows updates) and let me know whether it works for you. If not, please verify that C:\Users\User\AppData\Local\Temp\xxxx-jSerialComm.dll file actually exists when trying to run the program. If not, then there is some problem with the library unpacking the native Windows DLL to your temporary directory.

@hedgecrw
Copy link
Contributor

Closing due to inactivity and inability to replicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants