How to migrate application which has backend running using DLL methods and front end in JAVA to Apache spark? I have one Java Client which Reads 4 to 5 GBs of data and uses DLL file in order to process it and give O/P back to the JAVA client. 
Can anyone tell me if this can be implemented using Apache Spark or not ?
And if yes can you back you Answer by some examples or documentation Links ?

EDIT 

I have knowledge about JNI and how to do this in windows environement. 
What I'm actually looking for is How do you implement such thing in Apache Spark. 

As all methods and processing is done via DLL files and JAVA Client is just having represntational logic so any documentation is helpful. 

I'm currently using windows development env. but gonna use Ubuntu 14.04 for Apache Spark implemetation. 

EDIT after Hold

This question is really intending to ask where to find such documentation or help with which we can migrate such application smoothly.
You will need to use the Java Native Interface (JNI) for this. Refer to a Stack Overflow question for how to call DLL methods via Java over JNI.