Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 7 of 7

Thread: Problems with compiling a sketch, need help

  1. #1
    Junior Member
    Join Date
    Jul 2018
    Posts
    4

    Problems with compiling a sketch, need help

    So I downloaded Arduino version 1.8.5 and I have done everything I can think of including erasing all of the anti-virus that might be blocking the program as well as shutting down the fire wall. I uninstalled all Arduino rebooted my computer and reinstalled and I just keep getting the same error. I've tried looking around on the site as well as the help tab on Arduino, but I still can't figure it out. Any help would be greatly appreciated. Thanks!


  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    6,967
    Past years I've been grabbing the IDE ZIP - unzip it to a known spot ( the root directory of a separate partition I created for it ). This prevents fights with the IDE having its own thoughts - or fighting with system protected file areas.

    Not sure what Windows Version is in use?
    > I use Win 10 with default Defender/firewall and only add MalwareBytes nothing needs to disabled to install or run ( though I do a path exception to stop MalwareBytes from worrying over the temp files during compile slowing it down ).

    Then of course TeensyDuino is installed to that same known spot. Before or after ever opening the IDE.

    Once that is installed and done I see a popup on starting that JAVA needs permission to run. The IDE brings in a complete Java it likes and it needs to be allowed which I do and not ever seen trouble.

    Hard to tell what the reason for the fail without full text and sketch location info - either Java can't run or the a temp or the sketch file is trying to save to a forbidden place like the 'Program' directory.

    If you try again or with the above ZIP idea - copy all the text in the lower console window and paste in a post.

  3. #3
    Junior Member
    Join Date
    Jul 2018
    Posts
    4
    Here's the entire error text.

    Arduino: 1.8.5 (Windows 10), TD: 1.42, Board: "Teensy 3.2 / 3.1, MTP Disk (Experimental), 96 MHz (overclock), Faster, US English"

    java.io.IOException: Access is denied
    at java.io.WinNTFileSystem.createFileExclusively(Nati ve Method)
    at java.io.File.createTempFile(File.java:2024)
    at processing.app.BaseNoGui.saveFile(BaseNoGui.java:9 46)
    at processing.app.SketchFile.save(SketchFile.java:287 )
    at processing.app.Sketch.save(Sketch.java:138)
    at processing.app.SketchController.save(SketchControl ler.java:344)
    at processing.app.Editor.handleSave2(Editor.java:2031 )
    at processing.app.Editor.handleSave(Editor.java:2011)
    at processing.app.Editor.handleRun(Editor.java:1729)
    at processing.app.Editor.handleRun(Editor.java:1724)
    at processing.app.EditorToolbar.mousePressed(EditorTo olbar.java:345)
    at java.awt.Component.processMouseEvent(Component.jav a:6530)
    at javax.swing.JComponent.processMouseEvent(JComponen t.java:3324)
    at java.awt.Component.processEvent(Component.java:629 8)
    at java.awt.Container.processEvent(Container.java:223 6)
    at java.awt.Component.dispatchEventImpl(Component.jav a:4889)
    at java.awt.Container.dispatchEventImpl(Container.jav a:2294)
    at java.awt.Component.dispatchEvent(Component.java:47 11)
    at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4888)
    at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:4522)
    at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:4466)
    at java.awt.Container.dispatchEventImpl(Container.jav a:2280)
    at java.awt.Window.dispatchEventImpl(Window.java:2746 )
    at java.awt.Component.dispatchEvent(Component.java:47 11)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:758)
    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$JavaSecurityAccessI mpl.doIntersectionPrivilege(ProtectionDomain.java: 80)
    at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(ProtectionDomain.java: 90)
    at java.awt.EventQueue$4.run(EventQueue.java:731)
    at java.awt.EventQueue$4.run(EventQueue.java:729)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(ProtectionDomain.java: 80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java: 728)
    at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:82)
    Access is denied










    Build options changed, rebuilding all
    C:\Users\Brandi\AppData\Local\Temp\arduino_modifie d_sketch_88939\lightsaber.ino:39:21: fatal error: config/sethteensy_config.h: No such file or directory

    compilation terminated.

    Error compiling for board Teensy 3.2 / 3.1.

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

  4. #4
    Junior Member
    Join Date
    Jul 2018
    Posts
    4
    It's Windows 10.

  5. #5
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    6,967
    Try to start with an unmodified ' File / Examples ' like :: ...\examples\02.Digital\BlinkWithoutDelay

    The JAVA access errors are not right and shouldn't be there - Paul or others may have a fix.

    But the end ' fatal error: config/sethteensy_config.h: No such file or directory ' shows a missing directory or file needed to complete building the sketch at hand.

  6. #6
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    18,496
    I believe your copy of Arduino is probably ok. This error (probably) means something is wrong with the code you're trying to compile. It could also mean something is messed up with your PC's temporary folder or permissions, but before you dive down that deep rabbit hole, let's first look at the code you're trying to compile. That's most likely the problem.

    My guess is you didn't write this program. Maybe it came from here?

    https://github.com/profezzorn/ProffieOS

    Perhaps you copied and pasted only the contents of "lightsaber.ino" into the Arduino window? Then you clicked Verify? This is important, we need to know what you actually did to get to the bottom of this error!

    With normal, simple single-file Arduino programs you can indeed just copy them into the Arduino window.

    But this program isn't a small & simple program. It needs many other files, and they need to be in sub-folders with specific names. You can't get that arrangement by just copying and pasting text. You need to actually download the whole "ProffieOS" repository from github. You're supposed to click the green "Clone or download" button on that page. If you don't have the special github software on your PC (which is very unlikely if you're using Windows and you're not a software developer), you would click the "Download ZIP" link.

    When you save the download, remember *where* you're saving it. You'll need to know its location for the next steps, so don't just instantly click OK. If the location isn't somewhere convenient, you can move it after the download completes.

    The ZIP file will give you everything you need, but there's still a couple more steps you must do correctly. First extract the ZIP file. You will very likely end up with a folder called "ProffieOS-master", with "lightsaber.ino" and the 11 sub-folders shown on the github page. You need to rename this top folder to "lightsaber", because Arduino expects the main folder to have the same name as the main .ino file.

    After you've done all this, then use File > Open in Arduino. You'll probably need to navigate in the open dialog to whereever you extracted the ZIP file and renamed its folder.

  7. #7
    Junior Member
    Join Date
    Jul 2018
    Posts
    4
    Thanks Paul, It looks like that Zip file you mentioned is the same file called lightsaber I already have in my Arduino file. Perhaps Defragster is correct and my file I entered isn't correct? No I'm not a software developer and It seems I'm pretty slow at catching on to this stuff.


    Well it works, I guess my problem was indeed the fact that my custom file name I entered was incorrect somehow. I thought it was right because a checked it a dozen times, but it wasn't happy with it somehow. So I stuck with the default settings that profezzorn installed and it works great. I'm going to have to spend some time and figure out how to customize my settings and files and such. Thanks to you both for the help.
    Last edited by Jediseth; 07-07-2018 at 05:17 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •