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
 
(3 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
** \build\implementations\java\org.hl7.fhir.convertors
 
** \build\implementations\java\org.hl7.fhir.convertors
 
** \build\implementations\java\org.hl7.fhir.dstu2
 
** \build\implementations\java\org.hl7.fhir.dstu2
 +
** \build\implementations\java\org.hl7.fhir.dstu2016may
 
** \build\implementations\java\org.hl7.fhir.dstu3
 
** \build\implementations\java\org.hl7.fhir.dstu3
** \build\implementations\java\org.hl7.fhir.dstu2016may
+
** \build\implementations\java\org.hl7.fhir.r4
 
** \build\implementations\java\org.hl7.fhir.rdf
 
** \build\implementations\java\org.hl7.fhir.rdf
 
** \build\implementations\java\org.hl7.fhir.utilities
 
** \build\implementations\java\org.hl7.fhir.utilities
 +
** \build\implementations\java\org.hl7.fhir.validation
 
** \build\tools\java\org.hl7.fhir.tools.core
 
** \build\tools\java\org.hl7.fhir.tools.core
 
** \build\tools\java\org.hl7.fhir.igtools
 
** \build\tools\java\org.hl7.fhir.igtools
Line 34: Line 36:
 
** Select resolution of "Accessible"
 
** Select resolution of "Accessible"
 
** Enter "javafx/**" for "Rule Pattern"
 
** Enter "javafx/**" for "Rule Pattern"
 +
* For Linux environments
 +
** Eclipse should be run with GTK version 2. Modify the eclipse.ini file to specify "--include.GTK_version\n2" below the "openfile" line. See this bug report in eclipse for more information: https://bugs.eclipse.org/bugs/show_bug.cgi?id=491384
 +
** Install Jekyll using the following (Step 1 only) instructions: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-jekyll-development-site-on-ubuntu-16-04
 +
** Suggest at least 6GB ram. Java runs out with anything less than this amount of ram.
 +
** If using OpenJDK, you will need to install JavaFX separately: sudo ant-get install openjfx

Latest revision as of 16:44, 27 March 2018

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.convertors
    • \build\implementations\java\org.hl7.fhir.dstu2
    • \build\implementations\java\org.hl7.fhir.dstu2016may
    • \build\implementations\java\org.hl7.fhir.dstu3
    • \build\implementations\java\org.hl7.fhir.r4
    • \build\implementations\java\org.hl7.fhir.rdf
    • \build\implementations\java\org.hl7.fhir.utilities
    • \build\implementations\java\org.hl7.fhir.validation
    • \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"
  • For Linux environments