I have a little C program where I am forking a new process and I want to execute a Jar file there. This is the exec call:
execl("/usr/bin/java", "-jar", "/home/user/path/file.jar", NULL)
But I get an error:
Error: Could not find or load main class .home.user.path.file.jar
If I run the same command from command line the Jar runs without problems. I already checked the manifest file, everything is fine there.
So I have no idea why the slashes in the path are transformed into dots, leading to the error. Can anyone shed light on this issue?