After trying it a couple of times, I have found a way to run kettle plugin in Eclipse without loading all the sources. Here are steps:
- Add the kettle-engine.jar, kettle-core.jar, kettle-ui.jar and kettle-db.jar in the build path
- Copy the plugin folder under Kettle installation into the Eclipse project.
- Create the corresponding plugin folder for your custom plug in and create plugin.xml
- Open the Run Configurations window
- Create a new Java Application
- Put the project name in project field and "org.pentaho.di.ui.spoon.Spoon" into the main class (Alternatively, you can search this class by clicking on "Search".
- In the classpath tab, add all the jar files in the data-integration/libext, data-integration/libext/jfree, data-integration/libext/pentaho, data-integration/libext/spring, data-integration/libext/common, data-integration/libswt, data-integration/libswt/win32 (if linux, data-integration/libswt/linux) folders in kettle installation to "user entries"
- In the same tab, click on advanced, select "Add External Folder". Select the installation folder (data-integration) and add to the user entries.
- Now you can run the application and should be able to see the Spoon running in Eclipse
Hello, your post is very interesting, i follow all your steps and i can run the spoon using Ecplpse fine, but how do you debug the code of your plugin? because when you run it the plugins appear highlighted on the menu but only if it has its jar, so how is it possible for the spoon to use the code you have open in Eclipse instead of the jar file on the custom plugin folder?
ReplyDeleteGreat guide!
ReplyDeleteAlso, download the PDI-CE Javadocs and attach them as external Javadocs to the Build Path dependencies.
I have to say that having the PDI-CE sources are handy, because the Javadocs rarely say anything!! :-(
Don't miss the libext/JDBC jar files in the classpath, otherwise you can't properly run spoon inside eclipse, e.g. with accessing a database repository.
ReplyDeleteCan someone please tell me where can i find all the Jar files? I need to repackage Integrator.
ReplyDeletesorry i have this error how i fix it
ReplyDeletejava.lang.UnsatisfiedLinkError: no swt-pi-gtk-3139 in java.library.path
thanks
How to add the perform (step 8) there is no advanved option in same tab . How to add that data Integration folder location.
ReplyDeleteHi Thanks really very usefull..
ReplyDelete