ServiceMix
  1. ServiceMix
  2. SM-2135

add a version checker for servicemix start script

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.4.2
    • Component/s: None
    • Labels:
      None

      Description

      as for the upcoming 4.4 release we need run with JDK 1.6, so just add a version checker for the startup script so if user still use JDK 1.5 give proper prompt.

        Issue Links

          Activity

          Hide
          Graham Little added a comment -

          Hi Jean-Baptiste,

          I use a similar mechanism for my own servicemix.bat on my windows box, maybe this will be of
          some use to you.

          Thanks

          Graham

          @ECHO OFF

          SETLOCAL ENABLEDELAYEDEXPANSION

          for /f "tokens=3" %%A in ('REG Query "HKLM\SOFTWARE\JavaSoft\Java Development Kit" /F CurrentVersion /V /E 2^>NUL ^| FIND /I " CurrentVersion "') do ( SET jdkversion=%%A )

          :: If version is being enforced to jdk 1.6
          IF NOT %jdkversion%==1.6 ECHO Your JDK must be version 1.6

          :: If version allowed is greater than jdk.15 this would suffice.
          :: IF NOT %jdkversion% GTR 1.5 ECHO Your JDK must be greater than 1.5

          Show
          Graham Little added a comment - Hi Jean-Baptiste, I use a similar mechanism for my own servicemix.bat on my windows box, maybe this will be of some use to you. Thanks Graham @ECHO OFF SETLOCAL ENABLEDELAYEDEXPANSION for /f "tokens=3" %%A in ('REG Query "HKLM\SOFTWARE\JavaSoft\Java Development Kit" /F CurrentVersion /V /E 2^>NUL ^| FIND /I " CurrentVersion "') do ( SET jdkversion=%%A ) :: If version is being enforced to jdk 1.6 IF NOT %jdkversion%==1.6 ECHO Your JDK must be version 1.6 :: If version allowed is greater than jdk.15 this would suffice. :: IF NOT %jdkversion% GTR 1.5 ECHO Your JDK must be greater than 1.5

            People

            • Assignee:
              Jean-Baptiste Onofré
              Reporter:
              Freeman Fang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Development