added the one that can run the JAR file from C