create a java project to ease the call of java functions and some refactoring in the c code