Go Down

Topic: Can't open Serial monitor on Arduino IDE! (Read 709 times) previous topic - next topic

nikoskav

Hey everyone .

So I'm kinda new to arduino and i have a problem with my Serial monitor on Arduino IDE.

Every time I try opening the Serial monitor this message appears:



Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: C:\Users\????? ????????\.jssc\windows\jSSC-2.8_x86.dll: Can't find dependent libraries
   at java.lang.ClassLoader$NativeLibrary.load(Native Method)
   at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
   at java.lang.Runtime.load0(Runtime.java:809)
   at java.lang.System.load(System.java:1086)
   at jssc.SerialNativeInterface.<clinit>(SerialNativeInterface.java:172)
   at jssc.SerialPort.<init>(SerialPort.java:120)
   at processing.app.Serial.<init>(Serial.java:135)
   at processing.app.Serial.<init>(Serial.java:82)
   at processing.app.SerialMonitor$4.<init>(SerialMonitor.java:101)
   at processing.app.SerialMonitor.open(SerialMonitor.java:101)
   at processing.app.Editor.handleSerial(Editor.java:2250)
   at processing.app.Editor.lambda$buildToolsMenu$17(Editor.java:718)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
   at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
   at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:842)
   at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:886)
   at java.awt.Component.processMouseEvent(Component.java:6539)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
   at java.awt.Component.processEvent(Component.java:6304)
   at java.awt.Container.processEvent(Container.java:2239)
   at java.awt.Component.dispatchEventImpl(Component.java:4889)
   at java.awt.Container.dispatchEventImpl(Container.java:2297)
   at java.awt.Component.dispatchEvent(Component.java:4711)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
   at java.awt.Container.dispatchEventImpl(Container.java:2283)
   at java.awt.Window.dispatchEventImpl(Window.java:2746)
   at java.awt.Component.dispatchEvent(Component.java:4711)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
   at java.awt.EventQueue.access$500(EventQueue.java:97)
   at java.awt.EventQueue$3.run(EventQueue.java:709)
   at java.awt.EventQueue$3.run(EventQueue.java:703)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
   at java.awt.EventQueue$4.run(EventQueue.java:733)
   at java.awt.EventQueue$4.run(EventQueue.java:731)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

In case anyone knows something about it please tell me!
                                                                                                                   Thank you!

spycatcher2k

Quote
So I'm kinda new to arduino
Yip, What IDE version. What OS.  :)
Mrs Drew
-=-
UK Based PCB Manufacturing - PM for details
I will design & code for you, but I will also charge you (PM me)
Use Google or search this site BEFORE asking!

nikoskav

It's the 1.8.9 version of arduino IDE and windows 10.

rego0116

Try re installing it, I had the same problem, and try tó download the hourly work.
Hourly work doesent have a lot of bugs.
And try installing java.

nikoskav

I mean, I ran the same arduino board to another pc without java and it worked perfectly fine. I have re-installed it plenty of times too and the issue doesn't seem to be fixed at all.

ballscrewbob

If you have installed multiple times maybe there is some remnants that need to be cleared out.
Attaching some clean up instructions that may be of help.

Is this YOUR own personal computer ?
It should NOT be a company or loaned computer and if it is you should talk to your IT administrator to get an upgraded profile. Even more so if your company uses "Bit locker" as you are unlikely to be able to run the IDE without the Bit locker key.

Are you the ONLY user ?
If you are a secondary user in any way your permissions may not be high enough to access all the files or folders you may need to in order to run the IDE properly. This can be fixed by the primary user or the IT department who are often able to give you the correct permissions and or status.

Are you on a company or educational network or any other form of network ?
The Ide can be exceptionally fussy to run over a network unless you fully understand what you are doing. If you don't then talk to your local network guru.

Do you have Administrator priviledges ? (real ones not just pseudo user admin)
If you are a Primary user you may still have limited options depending on who and how your computer was set up. Luckily there are quite easy options to give yourself the FULL admin rights. NOTE that the full administrator account can be dangerous is not used with care and is better turned off after each use. Simply google "run with administrative" and google will do the rest in giving you lots of methods to do that. Its simple and quick.

What security do you use AV etc etc ? ( list them all ! )
Antivirus and some other security software will actively block parts of the IDE from operating and even on occasion issue a false positive warning about a virus. If you got your IDE from the reputable source of Arduino.cc then you have nothing to worry about.
You can tell your security software to IGNORE the Arduino software and or folders. If you get a virus warning you are better off to submit it to the respective AV Company and advise them of its status as a false positive. Many AV allow you to white list or exclude programs and those options change with different software so it is in your interest to figure that out.

Have you tried to use just an unzipped version of the IDE ?
Usually this is a last resort but if you download the ZIPPED version of the IDE and extract it to a folder you can quite often run it from there. If it works for you simply set up a shortcut to it on your desktop.

Another option is to change the location of your sketches folder.
You can do this from the preferences inside the IDE.
It may be worth moving it OUTSIDE your documents folder or even to another drive.

Simply create the folder you wish to use and then point the IDE to that location.
It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

nikoskav

Well I have tried deleting all the remenant files of the IDE through some guide at google and it failed . I'll try it the way the pdf suggests .Now about the Pc, it's completely MINE and I built it so I don't think there's an issue there. Furthermore, I don't really run any antivirus just firewall. Although, when in the past I tried letting specifically the app of IDE go through the firewall it wasn't even on the list of apps. No, I've never used a zipped version of IDE and I don't really know what this means as a 16-yo to be honest. I will try deleting the remenant files or (if that fails) relocating the sketches some time later because I'm kinda busy right now and I will let you know.

Excuse me for my poor English writing skills!

Thank you for your time

ballscrewbob

Another issue some users face is network or cloud based storage installations.

Where possible avoid them unless you know a little about them.
Google drive and OneDrive can be especially problematic.

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

nikoskav

So apparently I tried deleting the "arduino 15" file which I never found at the appData(local, low local, roaming) so I continued with downloading revouninstaller as you suggested.The arduino IDE was at the windows apps(in case that helps), and i just deleted the remenants of the app. When I downloaded it again my previous code appeared like nothing happened as well as the same message. Tried relocating the sketchbook to another drive but nothing changed. Moreover I'm pretty sure there's no network based installation.

Thank you for your time again.

sterretje

Quote
The arduino IDE was at the windows apps
Do I understand correctly that you're using the Windows store version? If so, uninstall and use the normal version "for WinXP and up".

The Windows store version is known to show unexpected behaviour at occasion.
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

Paul251

I have the same problem, tried some other resources, but not able the solve the exact problem!

Help will be appreciated!

nikoskav

I tried downloading the xp version and up. It let me download the exe file, but wouldn't let me go further as an invisible window pops up named "window dialog"(Not responding) and after a while of waiting another window named "NSIS Error" pops up with a message saying error launching installer.

ballscrewbob

It certainly sounds like a permissions or security issue at this point.

When was the last time you did a full and proper scan for nasties ?
preferably using a reputable online scanner !

You gave me a hint with the NSIS error.
There are multiple hits in google for how to fix that BUT...they may just mask an underlying issue which is why you may want to spend the time with a COMPLETE security audit.

If you wish I can provide some steps to do that but they can be a little time consuming depending on your hardware ?

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

nikoskav

So eventually I downloaded the arduino (xp and up) version from another pc and transfered it with a usb to mine. Suprisingly, it worked and now I can officially say that I'm able to open the serial monitor. I should thank you all guys for the significant help and the fact that you all spent time trying to solve the problem. Ballscrewbob I really wish you could provide me with some steps and it would be heavily appreciated.Don't worry my hardware is in a pretty good position.

Again, thank you all guys for the help!

ballscrewbob

The main thing here is not to use the computer for anything else whilst following the steps below

Use the initial clean up instructions already provided first but only in terms of CCLEANER and the WISE reg cleaner. That will remove a lot of crud from your computer and speed up the checking process.

Use the link I gave for ESET and run that to its completion.
If it finds anything let it deal with those issues.

Download and install MalwareBytes (free version)
Run it to its completion and let it deal with anything it finds.

Go back to step one and re-do. It will help clean any remnants found in steps 2 and 3.

Please run each thing to its completion before starting on the next step.

If you have anything nasty you may at some point need to perform a roll back to a known good restore point (assuming you have them set up). On some very serious occasions even a complete re-install of the OS may be required. (If you have proper back ups this is an easy process).

If you come across something you cannot handle then a good tech guy may be worth the expense.




It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

Go Up