Share via

OneDrive is not Syncing the .jar and .groovy files

Srikanth Pettem 1 Reputation point
2026-02-17T14:00:27.32+00:00

Hello Community!!

As part of my work I deal with .jar and .groovy. And I have to maintain them on the cloud. So I have created a folder in ondrive for the same.

Word, Excel, PPT, text, png,.... are getting sync from my File Explorer (Windows 11) but not syncing the .jar and .groovy.

Am I missing somthing? Guide me!!

Thanks in advance 😊

Microsoft 365 and Office | OneDrive | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Kai-L 11,480 Reputation points Microsoft External Staff Moderator
    2026-02-17T16:43:12.2233333+00:00

    Dear @Srikanth Pettem,

    Thank you for reaching out to Microsoft Q&A forum.

    I understand you're experiencing an issue with syncing certain files on OneDrive. As a forum moderator, I genuinely wish I could directly access your account or delve into the backend systems to diagnose and fix this for you. However, our role here is limited to providing general guidance and solutions that can be applied by users. 

    From my research, it seems the issue may be related to organizational security restrictions rather than a technical failure in the OneDrive app itself. While standard office documents typically sync without issue, files with extensions like .jar (Java Archive) and .groovy (script files) are often flagged as "restricted extensions" by IT departments due to their executable nature.

    To better understand whether the file type is the cause, I’d like to ask: when you mention that the files aren’t syncing, do you see any specific error messages such as “An administrator has blocked this file type” or “This file is in use by another program”? Or do the files simply not sync at all without an error message?

    Here’s a step-by-step way to check if the file extension is the blocker:

    1. Copy one of your .jar files to your desktop.
    2. Rename the file to test.txt.

    Move it back into your OneDrive folder.

    If test.txt syncs without any issues, it confirms that your organization’s security settings are blocking the .jar extension.

    Alternative Workarounds:

    • For backup purposes: If you need to store these files for backup, try compressing your project folder into a .zip file. Most organizations will allow .zip files, even if they contain restricted file types.
    • For source code and development-related files: Microsoft recommends using platforms like GitHub or Azure DevOps instead of OneDrive for storing files such as .groovy or source code. OneDrive is not optimized for high-frequency file changes or complex folder structures (e.g., node_modules or target folders) that are common in software development.

    If these files are essential to your workflow, your IT department may be able to make an exception to the ExcludedFileExtensions policy in the SharePoint Admin Center for your user group.

    I hope this information is helpful. Please follow these steps and let me know if it works for you. Thank you for your patience and understanding. If you have any questions or need further assistance, please feel free to share them in the comments so I can continue to support you. I'm looking forward to your reply.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.