Stream: committers
Topic: Java Version
Grahame Grieve (May 31 2016 at 23:19):
Hey All. Bad news, I'm afraid. I'm upgrading the tooling to require Java 8. I have several dependencies that requrie Java 8, and I can't hold it off any longer
Grahame Grieve (May 31 2016 at 23:20):
I'll hold off for a little while - maybe 24 hours max? - so that anyone can raise objections as to why that's not possible
David McKillop (Jun 01 2016 at 00:19):
Does that explain the following on my local build where my machine uses Java 8?
^ [java] c: warning: [options] bootstrap class path not set in conjunction with -source 1.6 [java] c: c:\work\subversion\fhir\build\implementations\java\org.hl7.fhir.dstu3\src\org\hl7\fhir\dstu3\model\Imagin gObjectSelection.java:1845: error: cannot find symbol [java] return ResourceType.ImagingObjectSelection; [java] ^ [java] symbol: variable ImagingObjectSelection [java] location: class org.hl7.fhir.dstu3.model.ResourceType [java] c: Note: Some input files use or override a deprecated API. [java] c: Note: Recompile with -Xlint:deprecation for details. [java] c: Note: Some input files use unchecked or unsafe operations. [java] c: Note: Recompile with -Xlint:unchecked for details. [java] .... build jars 41.713 110sec 814MB [java] java.lang.NoClassDefFoundError: org/hl7/fhir/utilities/CSFile [java] at java.lang.Class.getDeclaredMethods0(Native Method) [java] at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) [java] at java.lang.Class.privateGetMethodRecursive(Class.java:3048) [java] at java.lang.Class.getMethod0(Class.java:3018) [java] at java.lang.Class.getMethod(Class.java:1784) [java] at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544) [java] at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526) [java] Caused by: java.lang.ClassNotFoundException: org.hl7.fhir.utilities.CSFile [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:381) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:424) [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [java] ... 7 more [java] Error: A JNI error has occurred, please check your installation and try again [java] Exception in thread "main" [java] ERROR: Unable to process warnings: Unable to check Java library version [java] This was a Full Build 207.51 317sec 429MB [java] java.lang.Exception: Unable to check Java library version [java] at org.hl7.fhir.tools.implementations.java.JavaGenerator.checkVersion(JavaGenerator.java:651) [java] at org.hl7.fhir.tools.implementations.java.JavaGenerator.compile(JavaGenerator.java:514) [java] at org.hl7.fhir.tools.publisher.Publisher.produceSpecification(Publisher.java:1913) [java] at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:619) [java] at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:468) [java] java.lang.Exception: Unable to check Java library version [java] at org.hl7.fhir.tools.implementations.java.JavaGenerator.checkVersion(JavaGenerator.java:651) [java] at org.hl7.fhir.tools.implementations.java.JavaGenerator.compile(JavaGenerator.java:514) [java] at org.hl7.fhir.tools.publisher.Publisher.produceSpecification(Publisher.java:1913) [java] at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:619) [java] at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:468) [java] FHIR build failure @ Tue, May 31, 2016 15:50+1000 0.895 318sec 429MB [java] Error: Unable to check Java library version [java] Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=768m; support was removed in 8.0 BUILD FAILED c:\work\subversion\fhir\build\build.xml:30: The following error occurred while executing this line: c:\work\subversion\fhir\build\tools\java\org.hl7.fhir.tools.core\build.xml:90: Java returned: 1
Grahame Grieve (Jun 01 2016 at 02:15):
no
Grahame Grieve (Jun 01 2016 at 02:17):
that commit is to fix your problem, David
Grahame Grieve (Jun 01 2016 at 20:23):
As of my next commit, the build tool requires Java 8. It will crash about 30 seconds into the build if you do not have Java 8
Grahame Grieve (Jun 01 2016 at 20:24):
actually, my next set of commits
Lloyd McKenzie (Jun 01 2016 at 20:38):
Specifically, a Java 8 JDK, not just a runtime environment
Grahame Grieve (Jun 01 2016 at 20:51):
yes
Bryn Rhodes (Jun 06 2016 at 22:49):
So, I'm getting "Unable to check java library version"?
Bryn Rhodes (Jun 06 2016 at 22:49):
I've verified I'm using a 1.8 JDK.
Bryn Rhodes (Jun 06 2016 at 22:50):
I've also done a complete delete/re-get (twice actually).
Bryn Rhodes (Jun 06 2016 at 22:50):
Any thoughts?
Bryn Rhodes (Jun 07 2016 at 00:24):
FYI, the problem ended up being that the RemittanceOutcome codesystem generated a class name of "RemittanceOutcome", but a class file name of "Remittanceoutcome.java". Fixed that difference manually and now the build works for me...
Brian Postlethwaite (Jun 08 2016 at 05:03):
@Bryn Rhodes How did you fix that? The file gets autogenerated with the wrong case.
Brian Postlethwaite (Jun 08 2016 at 05:07):
Ok, don't know why. But its ok now.
Did find quite a few inconsistencies with the RemittanceOccurrence codesystem.
Brian Postlethwaite (Jun 08 2016 at 05:08):
@Paul Knapp, do you mind if I commit the changes for this code system?
The Partial value was missing from definitions around the place. I assume it is meant to be there.
Brian Postlethwaite (Jun 08 2016 at 07:55):
@Bryn Rhodes this commit should have fixed the enum case issue that you had.
Bryn Rhodes (Jun 08 2016 at 15:22):
Thanks @Brian Postlethwaite!
Vadim Peretokin (Feb 07 2017 at 10:08):
@Grahame Grieve Are you running JDK 7? org.hl7.fhir.convertors specifies JavaSE-1.7 but 1.7 JDK isn't publicly available anymore, save to Oracle support customers (http://www.oracle.com/technetwork/java/javase/downloads/index.html). It's just a warning, but still, bit of a hard requirement to meet
Grahame Grieve (Feb 07 2017 at 10:50):
I'm running jdk8. have to, for the build. I don't know anything about why stupid java plays games like this
Vadim Peretokin (Feb 07 2017 at 10:57):
Oh, easy fix then, just up the JRE version specified in the project :)
Right-click on the converters project, properties, Java Build Path, Libraries tab. Remove JRE 1.7, hit Add Library, JRE System Library, select "Workspace Defailt JRE (jre1.8...)". Same for fhir.rdf project.
Last updated: Apr 12 2022 at 19:14 UTC