Hi everybody,
I´m developping a java app in order to run JPF from command. So i call the program as following
final String jpf_exe = propiedades.getProperty("root-jpf"); /
/ this root refers to jpf-core/bin/jpf Process p = Runtime.getRuntime().exec("cmd /c "+jpf_exe+" DiningPhil 4"); //
this executes JPF from command and it works perfectly In this sample i´m using DiningPhil class as main class only to try if it works or not , but in my java app, the user upload the main class, its arguments, a file.properties and maybe some "+<key>=<value>" pairs and then my app has to be able to use all these information to run JPF and check the main class.
I´ve seen i can to call JPF with the main class like this :
<jpf-core-dir>/bin/jpf +classpath=. <application-main-class>
or with *.jpf file like this :
<jpf-core-dir>/bin/jpf <application-property-file>.jpf
So, which the best methode to call JPF and how can i specify the configuration to call correctly jpf?
Thank you in advance!
Noa.