1 | Importing Expeditee into Eclipse
|
---|
2 | ---------------------------------
|
---|
3 | New -> Other -> Java Project from Existing Ant Buildfile
|
---|
4 | Set the build file as Expeditees build.xml
|
---|
5 | Change the project name as required
|
---|
6 | Done
|
---|
7 |
|
---|
8 |
|
---|
9 | For newer version of Java used by Eclipse you need to include the
|
---|
10 | JavaFX jar files as library files to the project, as these are no longer
|
---|
11 | included as part of the JDK. You might also need to control the Java modules
|
---|
12 | in play. A good guide to this can be found at:
|
---|
13 |
|
---|
14 | https://gist.github.com/stevenliebregt/bc62a382fc43064136b662ee62172ab3
|
---|
15 |
|
---|
16 | Convert to Eclipse Plugin
|
---|
17 | --------------------------
|
---|
18 | Plugins cannot have dependant projects that are not plugins themselves. Therefore if you writing a eclipse plugin or RCP application that involes Expeditee you will need to convert Expeditee to a plugin project.
|
---|
19 |
|
---|
20 | Right click on your Expeditee project in the package explorer.
|
---|
21 | Configure Menu -> Convert to Plug-in Projects..
|
---|
22 | Open up your MANIFEST.MF file in eclipse (Inside META-INF folder)
|
---|
23 | Goto the 'Runtime' tab.
|
---|
24 | In the 'Classpath' area remove all entries except the expeditee jar file
|
---|
25 | Open up your buildpath for the project.
|
---|
26 | Right Click project -> Build Path -> Configure build path
|
---|
27 | Remove all .jar entries from the libraries tab.
|
---|
28 | Go back to the class path area of the runtime tab in MANIFEST.MF
|
---|
29 | Select 'Add...' and proceed to add all the jars listed in releases\jars and releases\jars\ext
|
---|
30 |
|
---|
31 | You should now be able to run your eclipse plugin/rcp that depends on Expeditee
|
---|
32 |
|
---|
33 | A note on new jar files
|
---|
34 | -----------------------
|
---|
35 | If a new jar file is added to expeditees libraries then you are going to have to tell the MANIFEST.MF file about it (as well as your project classpath).
|
---|
36 | Failure to do this will cause a runtime exception when the jar file is asscessed; because the plugin doesn't think you should have access.
|
---|
37 |
|
---|
38 | To add the new jar file: open MANIFEST.MF
|
---|
39 | Go to the 'Runtime' tab and add it as a required jar on the classpath area.
|
---|