user2870
user2870

Reputation: 487

Run a class in workspace via Eclipse plug-in?

I am working on an Eclipse plug-in project and I want to to be able run a specific class via this plug-in.

For example I added a button to the eclipse interface and I want this button runs one specific Java class.

I am looking through the tutorials etc but I couldn't find how to make this.

Is there anyone that can give me some intuition?

Best

Upvotes: 1

Views: 27

Answers (1)

K139
K139

Reputation: 3669

You could use Runtime.exec(). But for a cleaner approach refer 'Commons Exec' library.

Upvotes: 2

Related Questions