Java duplicate class error

Hi all, please see part of the build output below – I have created a test app in 8.2.1 – this is purely to test tha native app process with our mobile device management platform. I am getting the below error. The files referenced are auto-generated by Mendix and any changes are reversed at deployment so not sure what to do to try and solve the error.    compile: [javac] Compiling 46 source files to /srv/cloud/slots/tr10000/deploy/data/tmp/6907ecf7-991b-4d4f-b092-90f1ac85fc6d/src/deployment/run/bin [javac] /srv/cloud/slots/tr10000/deploy/data/tmp/6907ecf7-991b-4d4f-b092-90f1ac85fc6d/src/javasource/nativemobile/proxies/ error: duplicate class: nativemobile.proxies.Login [javac] public class Login [javac] ^ [javac] /srv/cloud/slots/tr10000/deploy/data/tmp/6907ecf7-991b-4d4f-b092-90f1ac85fc6d/src/javasource/nativemobile/proxies/ error: duplicate class: nativemobile.proxies.TestData1 [javac] public class TestData1 [javac] ^ [javac] 2 errors BUILD FAILED /srv/cloud/slots/tr10000/deploy/data/tmp/6907ecf7-991b-4d4f-b092-90f1ac85fc6d/src/deployment/build_core.xml:29: Compile failed; see the compiler error output for details. Total time: 3 seconds  
1 answers

Hi Garion,

This may be due to an unsuccessfull name change of the module. In such a case, the module is copied in the javasource folder in the app directory with a new name and the old folder is kept, resulting in two identical folders with different names. Simply delete the copied folder with the modulename that is not used and you should be fine.

Best regards,