Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-3991

Add a check and warning if Jalview is compiled for Java 8 but being run by Java 11

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.11.2.2, 2.11.2.3
    • Fix Version/s: 2.11.2.4
    • Component/s: gradle, gui, launcher
    • Labels:
      None
    • Urgency:
      Urgent

      Description

      Jalview compiled for java 8 (either the getdown/install4j installation or the executable jar) will run in java 11, but without a working web services client (due to certain libraries becoming external to the JVM).

      Adding the JAVA_VERSION Jalview is compiled to into the .build_properties means that Jalview can check whether the right JVM is being used, and issue a warning if it isn't.

      A console (stderr) warning could be made in jalview.bin.Launcher and jalview.bin.Jalview, and a popup could be made in jalview.bin.Desktop.

      Gradle will need to be adjusted to add the JAVA_VERSION to the .build_properties file.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              soares Ben Soares
              Reporter:
              soares Ben Soares
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: