You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Graham Little (Commented) (JIRA)" <ji...@apache.org> on 2012/03/02 12:34:57 UTC

[jira] [Commented] (SM-2135) add a version checker for servicemix start script

    [ https://issues.apache.org/jira/browse/SM-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220849#comment-13220849 ] 

Graham Little commented on SM-2135:
-----------------------------------

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
                
> add a version checker for servicemix start script
> -------------------------------------------------
>
>                 Key: SM-2135
>                 URL: https://issues.apache.org/jira/browse/SM-2135
>             Project: ServiceMix
>          Issue Type: Improvement
>            Reporter: Freeman Fang
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 3.5
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira