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
(Created page with "To build the FHIR publishing tools within the Eclipse Editor: * install eclipse (java developers version) * start it * create a workspace where suits * File..Import.. * Gene...")
 
Line 7: Line 7:
 
* General - Existing Projects into Workspace
 
* General - Existing Projects into Workspace
 
* Select the following projects to import:
 
* 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\implementations\java\org.hl7.fhir.utilities
 
** \build\tools\java\org.hl7.fhir.tools.core
 
** \build\tools\java\org.hl7.fhir.tools.core
** \build\tools\java\org.hl7.fhir.definitions.ecore
+
** \build\tools\java\org.hl7.fhir.igtools
** \build\tools\java\org.hl7.fhir.instance
 
  
 
Can do this by selecting your build folder
 
Can do this by selecting your build folder
Line 16: Line 20:
 
Then selecting the search for nested projects checkbox, and then checking/unchecking each of the projects in the list.
 
Then selecting the search for nested projects checkbox, and then checking/unchecking each of the projects in the list.
  
''Disclaimer - this is from a non Java developer...''
+
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"

Revision as of 17:54, 4 October 2016

To build the FHIR publishing tools within the Eclipse Editor:

  • install eclipse (java developers version)
  • start it
  • create a workspace where suits
  • 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"