Hi All,
I am using system function to invoke a jar file in MAC OS. But the jar file path has space in the folder name.
string arg1= "MyWindow";
string jarFile = "java -jar /Users/User1/Desktop/Sample Java/Demo.jar ";
jarFile += arg1;
system(jarFile.c_str());
"/Sample Java" folder name has space in between. Because of which the jar is not coming up. How to to pass a path which has space in folder name to system function.