Results 1 to 1 of 1
- 08-24-2010, 11:11 AM #1
Member
- Join Date
- Aug 2010
- Posts
- 4
- Rep Power
- 0
Is it possible to have an action which launches a jar?
Hi,
I have defines an actionSet with one action. I would like this to, when invoked, launch an external jar file. Is this possible?
I have added the jar file to the java build path for the project.
and defines the class for the action. Here it is:
the print statement executes just fine, so I now the run() method is being called.Java Code:package instantmessengerplugin; import java.io.IOException; import org.eclipse.jface.action.Action; import org.eclipse.jface.action.IAction; import org.eclipse.jface.viewers.ISelection; import org.eclipse.ui.IWorkbenchWindow; import org.eclipse.ui.IWorkbenchWindowActionDelegate; public class ActionClass implements IWorkbenchWindowActionDelegate { private IWorkbenchWindow window; @Override public void dispose() { // TODO Auto-generated method stub } @Override public void init(IWorkbenchWindow window) { this.window = window; } @Override public void run(IAction arg0) { System.out.println("hello"); Connection.main(null); } @Override public void selectionChanged(IAction arg0, ISelection arg1) { // TODO Auto-generated method stub } }
Connection is a class in the jar which conatins the main method.
I have run the debugger but I don't quite understand what is being executed
Let me know if I should post the debug stack here.
I was wondering if maybe actions were not supposed to launch jar files or something like that.
Any help would be appreciated.
Similar Threads
-
HTTP Status 404 - There is no Action mapped for action name showmainframe...
By vaibhavspawar in forum Advanced JavaReplies: 3Last Post: 08-19-2010, 08:27 AM -
Action(s) is looking for testers
By app.jbbres.com in forum Reviews / AdvertisingReplies: 0Last Post: 06-26-2010, 11:51 PM -
autoboxing in action
By Ahmed.Java in forum Java SoftwareReplies: 1Last Post: 04-29-2010, 12:26 PM -
JButton action
By jperson in forum New To JavaReplies: 3Last Post: 03-24-2010, 06:47 PM -
jsp:param action
By Java Tip in forum Java TipReplies: 0Last Post: 12-24-2007, 10:03 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks