Sunday, 15 September 2013

How to run a Java Main method of a Class during Eclipse Start up in the background ? -



How to run a Java Main method of a Class during Eclipse Start up in the background ? -

is there alternative in eclipse can add together start hook, @ start of eclipse can execute main method class of java project ? doable ? or require create eclipse plugin ?

the "right" way of doing create plugin extension org.eclipse.ui.startup (org.eclipse.ui.startup documentation). have provide class implements interface org.eclipse.ui.istartup. it's in class should phone call main method of class.

another alternative create osgi bundle, install bundle in eclipse , configure start automatically, can provide activator runs task want in start(bundlecontext) method.

in either case, class/es must part of plugin's classpath or packaged plugin/osgi bundle marked dependency of startup bundle.

now, may inquire want achieve?

java eclipse eclipse-plugin eclipse-rcp

No comments:

Post a Comment