Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-221

Batch scripts should show some error message when we set JAVA_HOME to nonexisting folder

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 8.0.0.Alpha3
    • None
    • Scripts
    • None

    Description

      steps to reproduce:
      ...

      jboss-eap-6.0\bin>set JAVA_HOME=c:\dummy
      jboss-eap-6.0\bin>standalone.bat
      Calling "W:\tmp\pk\jboss-eap-6.0\bin\standalone.conf.bat"
      
      >

      ...

      batch script will end on this line (standalone.bat)
      l:73 "%JAVA%" -client -version 2>&1 | findstr /I /C:"Client VM" > nul

      On linux we get at least error message:
      ./standalone.sh: line 178: /home/dummy/bin/java: No such file or directory

      Attachments

        Activity

          People

            rsvoboda@redhat.com Rostislav Svoboda
            bstansbe@redhat.com Brian Stansberry
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: