qupath / qupath-extension-omero-web

QuPath extension to work with images through OMERO's web API
GNU General Public License v3.0
8 stars 12 forks source link

specifying java version to use in the README? #1

Closed PerrineGilloteaux closed 3 years ago

PerrineGilloteaux commented 3 years ago

Java 8 does not seems compatible, It went fine with java 14, I am guessing java 11 as well :) Many thanks for this great extension! (in case anyone got the same problem that was the bug messge when building with gradlew:

* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not resolve io.github.qupath:qupath-gui-fx:0.3.0-SNAPSHOT.
     Required by:
         project :
      > No matching variant of io.github.qupath:qupath-gui-fx:0.3.0-SNAPSHOT:20210701.045802-9 was found. The consumer was configured to find an API of a library compatible with Java 8, preferably in the form of class files, preferably optimized for standard JVMs, and its dependencies declared externally but:
          - Variant 'apiElements' capability io.github.qupath:qupath-gui-fx:0.3.0-SNAPSHOT declares an API of a library, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
              - Other compatible attribute:
                  - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
          - Variant 'javadocElements' capability io.github.qupath:qupath-gui-fx:0.3.0-SNAPSHOT declares a runtime of a component, and its dependencies declared externally:
              - Incompatible because this component declares documentation and the consumer needed a library
              - Other compatible attributes:
                  - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
                  - Doesn't say anything about its target Java version (required compatibility with Java 8)
                  - Doesn't say anything about its elements (required them preferably in the form of class files)
          - Variant 'runtimeElements' capability io.github.qupath:qupath-gui-fx:0.3.0-SNAPSHOT declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
              - Other compatible attribute:
                  - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
          - Variant 'sourcesElements' capability io.github.qupath:qupath-gui-fx:0.3.0-SNAPSHOT declares a runtime of a component, and its dependencies declared externally:
              - Incompatible because this component declares documentation and the consumer needed a library
              - Other compatible attributes:
                  - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
                  - Doesn't say anything about its target Java version (required compatibility with Java 8)
                  - Doesn't say anything about its elements (required them preferably in the form of class files)

Best and many thanks for your great tutorial at th EMBO course today!

petebankhead commented 3 years ago

Ah, thanks! You're right, Java 11+ should work.

It should be possible to make it work with Java 8 via a gradle toolchain (well, the toolchain will force gradle to download a compatible Java version) - I did this with the main QuPath repository, but not with the extensions. So I'll leave this issue open as a reminder we should update both the readme and the toolchain to maximize the chances it will work.