Mendix 11.64 version - Java compilation failed while running app

0
Hi,I am using Mendix Studio Pro 11.6.4.When I try to run my application, I get the following error:Execution failed for task ':clean-custom-classes'Unable to delete directory deployment/run/binIt seems like some files are locked or not getting deleted. My project is currently stored in OneDrive.I have tried restarting and cleaning the deployment folder, but the issue still persists.Can anyone please help me resolve this issue?Thanks.
asked
2 answers
3

I would strongly advise not to store your project in OneDrive. It is probably the cause of your problems. Use a different location for your Mendix projects.

Regards,

Ronald

answered
0

Hi,


This issue is usually not related to Java compilation itself, but to file locking on the deployment folder, especially when the project is stored in OneDrive.

Root cause

The error:

Unable to delete directory deployment/run/bin

means that some process is locking files inside the deployment/run/bin folder, so Mendix cannot clean and rebuild the project.

Since your project is inside OneDrive, this is the most likely cause. OneDrive continuously syncs files and can lock them, which interferes with Mendix runtime.

1. Move project out of OneDrive

Move your project to a local path, for example:

C:\Mendix\MyApp

Then:

  • Open the project again in Studio Pro
  • Run the app

This resolves the issue in most cases.

2. Close all running processes

Make sure:

  • No previous Mendix runtime is running
  • No Java processes are active (check Task Manager → java.exe)

End them if needed.

3. Manually delete deployment folder

Close Studio Pro, then:

  • Go to project folder
  • Delete:
deployment\

  • Reopen the project and run

4. Disable OneDrive sync

If you cannot move the project:

  • Pause OneDrive sync temporarily
  • Or exclude the project folder from syncing

5. Check antivirus / file indexing

Sometimes antivirus or Windows indexing also locks files:

  • Temporarily disable antivirus (for testing)
  • Add project folder to exclusion list

  • Root cause: file locking (most likely OneDrive sync)
  • Fix: move project to a local non-synced folder
  • Additional: ensure no running processes and clean deployment


answered