You might want to use a JavaAction to get the resource path. Have a look at the package com.mendix.cor.conf, Interface Configuration, method getResourcesPath():
https://apidocs.rnd.mendix.com/8/runtime/com/mendix/core/conf/Configuration.html#getResourcesPath
- Create a new JavaAction in Studio Pro, call it “JA_GetResourcePath”. Set Return Type to “String”
- Deploy for Eclipse
- Import the project in Eclipse
- Navigate to the javasource folder and search for the package with the same name as the Mendix module where you created the Java Action in, appended by “.actions” (e.g. “MyFirstModul.actions”)
- Open “JA_GetResourcesPath.java” and add line “import com.mendix.core.Core;” in the import section
- Replace the line between // BEGIN USER CODE and // END USER CODE with this:
return Core.getConfiguration().getResourcesPath().toString()
The Java Action in Mendix Studio Pro should look like this:

And in Eclipse like this:
