java - How to run a .class file that is in another directory -


my question how run .class java file in directory using exec() or processbuilder class. works if .class file in same directory (as java program).

problem solved guys replies... :)

solution i've used

string path = "d:\work"; //path program execute

string program = "test"; //my program name

processbuilder pb = new processbuilder("java","-classpath",path, program);


Comments

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -