Stream: IG creation
Topic: Local IG Publisher Build
Brian Postlethwaite (Jun 25 2019 at 01:26):
I'm building the IG publisher locally where I've been able to debug and fixed some stuff, and now I'm trying to get the jar output file and having troubles.
The error I get is that there is no main manifest attribute in org.hl7.fhir.igpublisher.jar
I've been building it using mvn -Dmavent.test.skip install as noted in the readme
and the file in the cli has the main, but gives
Any tips would be greatly appreciated.
Brian Postlethwaite (Jul 01 2019 at 13:55):
The build succeeds, but when I try to replace the jar with the one from the normal build I get
"java.exe" -Xmx1024m -jar "C:\git\fhir-ig-publisher\org.hl7.fhir.publisher.cli\target\org.hl7.fhir.publisher.cli-0.9.41-SNAPSHOT.jar" -ig ig.json Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.NoClassDefFoundError: com/google/gson/JsonElement at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.lang.Class.privateGetMethodRecursive(Unknown Source) at java.lang.Class.getMethod0(Unknown Source) at java.lang.Class.getMethod(Unknown Source) at sun.launcher.LauncherHelper.validateMainClass(Unknown Source) at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source) Caused by: java.lang.ClassNotFoundException: com.google.gson.JsonElement at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 7 more
Brian Postlethwaite (Jul 01 2019 at 14:00):
I'm using the Java SDK:
Using C:\Program Files\java\jdk-12.0.1
Grahame Grieve (Jul 03 2019 at 22:58):
@James Agnew
Brian Postlethwaite (Jul 04 2019 at 02:18):
We caught up on this and problem sorted. Thanks
Richard Stanley (Aug 23 2021 at 18:06):
For those seeing this error, after the local build make sure you use the jar file in the target directory of org.hl7.fhir.publisher.cli
and not org.hl7.fhir.publisher.core
. Hope it helps someone else.
Last updated: Apr 12 2022 at 19:14 UTC