java compilation error

Buildfile: C:\Users\tushu\OneDrive\Desktop\CheckedIn-Original-main_2\deployment\build_core.xml compile:     [javac] Compiling 198 source files to C:\Users\tushu\OneDrive\Desktop\CheckedIn-Original-main_2\deployment\run\bin     [javac] C:\Users\tushu\OneDrive\Desktop\CheckedIn-Original-main_2\javasource\communitycommons\ error: method execute in class Core cannot be applied to given types;     [javac]         return Core.execute(c, microflowName, params);     [javac]                    ^     [javac]   required: T     [javac]   found: IContext,String,Map<String,Object>     [javac]   reason: cannot infer type-variable(s) T,R     [javac]     (actual and formal argument lists differ in length)     [javac]   where T,R are type-variables:     [javac]     T extends CoreAction<R> declared in method <T,R>execute(T)     [javac]     R extends Object declared in method <T,R>execute(T)     [javac] C:\Users\tushu\OneDrive\Desktop\CheckedIn-Original-main_2\javasource\communitycommons\ warning: [dep-ann] deprecated item is not annotated with @Deprecated     [javac]     public static boolean objectsAreEqual(Object left, Object right) {     [javac]                           ^     [javac] Note: Some input files use or override a deprecated API.     [javac] Note: Recompile with -Xlint:deprecation for details.     [javac] 1 error     [javac] 1 warning BUILD FAILED C:\Users\tushu\OneDrive\Desktop\CheckedIn-Original-main_2\deployment\build_core.xml:30: Compile failed; see the compiler error output for details. Total time: 3 seconds  
2 answers

Looks like you updated your Mendix version but may not have updated your community commons. The first step would be to check the marketplace for a new version and see if that fixes your issue.


The issue Eline raises might also be an issue.

Besides this, you checked out the model of your app in a onedrive synced folder.

This will give conflicts, since Onedrive is a versioned older and your model is versioned using GIT. 

Comparable by checking out a Google drive folder in a Onedrive folder…


Create a Folder for your mendix projects outside a OneDrive synced folder.