source: trunk/README-Eclipse-Plugin.txt@ 1534

Last change on this file since 1534 was 1534, checked in by davidb, 4 years ago

Some additional details include (about JavaFX), as a result of trialling Expeditee compile in 2020-09 version of Eclipse with JDK14

File size: 1.9 KB
Line 
1Importing Expeditee into Eclipse
2---------------------------------
3New -> Other -> Java Project from Existing Ant Buildfile
4Set the build file as Expeditees build.xml
5Change the project name as required
6Done
7
8
9For newer version of Java used by Eclipse you need to include the
10JavaFX jar files as library files to the project, as these are no longer
11included as part of the JDK. You might also need to control the Java modules
12in play. A good guide to this can be found at:
13
14 https://gist.github.com/stevenliebregt/bc62a382fc43064136b662ee62172ab3
15
16Convert to Eclipse Plugin
17--------------------------
18Plugins 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
20Right click on your Expeditee project in the package explorer.
21Configure Menu -> Convert to Plug-in Projects..
22Open up your MANIFEST.MF file in eclipse (Inside META-INF folder)
23Goto the 'Runtime' tab.
24In the 'Classpath' area remove all entries except the expeditee jar file
25Open up your buildpath for the project.
26Right Click project -> Build Path -> Configure build path
27Remove all .jar entries from the libraries tab.
28Go back to the class path area of the runtime tab in MANIFEST.MF
29Select 'Add...' and proceed to add all the jars listed in releases\jars and releases\jars\ext
30
31You should now be able to run your eclipse plugin/rcp that depends on Expeditee
32
33A note on new jar files
34-----------------------
35If 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).
36Failure 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
38To add the new jar file: open MANIFEST.MF
39Go to the 'Runtime' tab and add it as a required jar on the classpath area.
Note: See TracBrowser for help on using the repository browser.