Embedding a JAR into a plugin
From Aptana Development
This page describes how to embed a JAR into an Aptana plugin.
Introduction
Embedding an existing JAR into a plugin can be tricky. The example below uses a prepackaged JAR that will be embedded into the com.aptana.ide.syncing.ftp plugin.
Instructions
To embed a JAR into a plugin (using the example described above):
- Open up the build.properties file. Switch to the "Build" tab.
- Delete the existing "." item under "Runtime Information" by selecting it and pressing the delete key.
- Add a new item called "classes.jar". Select it and press "Add Folder" in the far-right column. Select "src"/
- Make sure the ipworks.jar file is added in the binary build tree.
- At the very bottom of the screen, under "Extra Classpath Entries", add "ipworks.jar" again. It should look like this:

- In the feature for this particular plugin (generally com.aptana.ide.feature), open feature.xml, switch to the plugins tab, and make sure "Unpack the plugin archive after installation" is checked.
Related Topics
- Eclipse tips and tricks
- Adding context-sensitive Help to a plugin
- Setting a run-time preference manually
- Creating a new Aptana Editor


