Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-13381

Test the Java version in the startup script

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Duplicate
    • Major
    • None
    • 8.1-milestone-2
    • Jetty resources (Tool)
    • None
    • Windows 10
    • Unknown

    Description

      When trying to test the 8.1M2 in its standalone version I've been put in a strange state where :

      • the Java info is telling me that i'm on java 8.x
      • the online browser test is telling also java 8.x
      • the %JAVA_PATH% env variable is still at 7.x

      Reading the error given was not as clear as telling me that I needed to check my env var from my OS :

      Caused by: java.lang.UnsupportedClassVersionError: org/xwiki/tools/jetty/listener/NotifyListener : Unsupported major.minor version 52.0
      

      Proposal : Test the Java version in the startup script and if it's the wrong one, warn the user of what to do instead of sending the error.

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              jcoury Jean Coury
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: