igvteam / igv

Integrative Genomics Viewer. Fast, efficient, scalable visualization tool for genomics data and annotations
https://igv.org
MIT License
646 stars 387 forks source link

Issues with building project #1496

Closed t0msk closed 9 months ago

t0msk commented 9 months ago

Hello, I have issues with building project on Linux (Arch Linux), this is my environment:

╰─ archlinux-java status                                                                    ─╯
Available Java environments:
  java-11-openjdk (default)
  java-21-openjdk
  java-8-openjdk

this is gradle version: ╰─ gradle -v ─╯

Welcome to Gradle 8.6!

Here are the highlights of this release:
 - Configurable encryption key for configuration cache
 - Build init improvements
 - Build authoring improvements

For more details see https://docs.gradle.org/8.6/release-notes.html

------------------------------------------------------------
Gradle 8.6
------------------------------------------------------------

Build time:   2024-02-02 19:16:52 UTC
Revision:     <unknown>

Kotlin:       1.9.20
Groovy:       3.0.17
Ant:          Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM:          11.0.22 (Oracle Corporation 11.0.22+7)
OS:           Linux 6.7.5-zen1-1-zen amd64

when I run ./gradlew, it doesnt build:

FAILURE: Build failed with an exception.

* Where:
Build file '/run/media/tomsk/Data/Projects/Java/igv/build.gradle' line: 451

* What went wrong:
A problem occurred evaluating root project 'igv'.
> Failed to calculate the value of task ':compileJava' property 'javaCompiler'.
   > No matching toolchains found for requested specification: {languageVersion=17, vendor=any, implementation=vendor-specific}.
      > No locally installed toolchains match (see https://docs.gradle.org/8.0.2/userguide/toolchains.html#sec:auto_detection) and toolchain download repositories have not been configured (see https://docs.gradle.org/8.0.2/userguide/toolchains.html#sub:download_repositories).

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 461ms

Debug log here: https://pastebin.com/raw/S6FGf0k5

jrobinso commented 9 months ago

If you are pulling the latest it requires Java 17

t0msk commented 9 months ago

Thank you, one more issue, when I try to run it:

─ /run/media/tomsk/Data/Projects/Java/igv  master ↓12                                                                                                   127 ✘  16:35:44 ─╮
╰─ ./build/IGV-dist/igv.sh                                                                                                                                                   ─╯
Using system JDK. IGV requires Java 17.
openjdk version "11.0.22" 2024-01-16
OpenJDK Runtime Environment (build 11.0.22+7)
OpenJDK 64-Bit Server VM (build 11.0.22+7, mixed mode)
Error occurred during initialization of boot layer
java.lang.module.FindException: Error reading module: /run/media/tomsk/Data/Projects/Java/igv/build/IGV-dist/lib/igv.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: Unsupported major.minor version 61.0

╭─ /run/media/tomsk/Data/Projects/Java/igv  master ↓12                                                                                                     1 ✘  16:41:29 ─╮
╰─ ./scripts/igv.sh                                                                                                                                                          ─╯
Using system JDK. IGV requires Java 17.
openjdk version "11.0.22" 2024-01-16
OpenJDK Runtime Environment (build 11.0.22+7)
OpenJDK 64-Bit Server VM (build 11.0.22+7, mixed mode)
Error occurred during initialization of boot layer
java.lang.module.FindException: Module org.igv not found
jrobinso commented 9 months ago

Is there something about the message you are seeing that isn't clear?

jrobinso commented 9 months ago

Using system JDK. IGV requires Java 17.

t0msk commented 9 months ago

but I have Java 17:

╰─ archlinux-java status                                                                                                                                                                                   ─╯
Available Java environments:
  java-11-openjdk (default)
  java-17-openjdk
  java-21-openjdk
  java-8-openjdk
jrobinso commented 9 months ago

Its not your default, look at the message. Or type "java --version" on the command line.


─ /run/media/tomsk/Data/Projects/Java/igv  master ↓12 

            127 ✘  16:35:44 ─╮
╰─ ./build/IGV-dist/igv.sh

                               ─╯
Using system JDK. IGV requires Java 17.*openjdk version "11.0.22" 2024-01-16
OpenJDK Runtime Environment (build 11.0.22+7)
OpenJDK 64-Bit Server VM (build 11.0.22+7, mixed mode)*

On Tue, Feb 20, 2024 at 8:19 AM t0msk @.***> wrote:

but I have Java 17:

╰─ archlinux-java status ─╯ Available Java environments: java-11-openjdk (default) java-17-openjdk java-21-openjdk java-8-openjdk

— Reply to this email directly, view it on GitHub https://github.com/igvteam/igv/issues/1496#issuecomment-1954571327, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHD2HHJ7XJGU77D2VEAWJTYUTEJ3AVCNFSM6AAAAABDQY44FGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJUGU3TCMZSG4 . You are receiving this because you modified the open/close state.Message ID: @.***>