This wiki has undergone a migration to Confluence found Here
<meta name="googlebot" content="noindex">

Difference between revisions of "FHIR Java Setup"

From HL7Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
To build the FHIR publishing tools within the Eclipse Editor:
 
To build the FHIR publishing tools within the Eclipse Editor:
* install eclipse (java developers version)
+
* start eclipse
* start it
+
* create a workspace where suits. recommend not saving workspace under the root fhir-build path, or you will have to ignore it every time you make a commit to SVN.
* create a workspace where suits
 
 
 
 
* File..Import..  
 
* File..Import..  
 
* General - Existing Projects into Workspace
 
* General - Existing Projects into Workspace

Revision as of 17:55, 4 October 2016

To build the FHIR publishing tools within the Eclipse Editor:

  • start eclipse
  • create a workspace where suits. recommend not saving workspace under the root fhir-build path, or you will have to ignore it every time you make a commit to SVN.
  • File..Import..
  • General - Existing Projects into Workspace
  • Select the following projects to import:
    • \build\implementations\java\org.hl7.fhir.utilities
    • \build\implementations\java\org.hl7.fhir.dstu2
    • \build\implementations\java\org.hl7.fhir.dstu3
    • \build\implementations\java\org.hl7.fhir.dstu2016may
    • \build\implementations\java\org.hl7.fhir.rdf
    • \build\implementations\java\org.hl7.fhir.utilities
    • \build\tools\java\org.hl7.fhir.tools.core
    • \build\tools\java\org.hl7.fhir.igtools

Can do this by selecting your build folder e.g. C:\Work\org.hl7.fhir\build Then selecting the search for nested projects checkbox, and then checking/unchecking each of the projects in the list.

Additional Notes:

  • You may need to add a the "tools/java/imports/hapi-fhir-base-1.6.jar" as a library to the build path of the org.hl7.fhir.tools project
    • Go to properties of org.hl7.fhir.tools
    • Go to "Java Build Path"
    • Go to "Libraries" tab
    • Click "Add External JARs..."
    • Browse to the hapi-fhir-base jar in tools/java/imports
  • You may also need to add a security exception to the "JRE System Library" library under org.hl7.fhir.igtools for "javafx/**"
    • Go to properties of org.hl7.fhir.igtools
    • Go to java build path
    • Go to libraries tab
    • Expand "JRE System Library"
    • Click "Edit" on "Access rules"
    • Click "Add"
    • Select resolution of "Accessible"
    • Enter "javafx/**" for "Rule Pattern"