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
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.
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.
Move your project to a local path, for example:
C:\Mendix\MyApp
Then:
This resolves the issue in most cases.
Make sure:
java.exe)End them if needed.
Close Studio Pro, then:
deployment\
If you cannot move the project:
Sometimes antivirus or Windows indexing also locks files: