Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5282

CLONE - "echo ERROR: Set JAVA_HOME to the path where the J2SE 5.0 (JDK5.0) is installed" doesn't mention Java SE 6

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3
    • 2.3.2, 2.7.12
    • None
    • None

    Description

      Consider the following message seen in the tool script files (e.g., wsdl2java):

      :no_java_home
      echo ERROR: Set JAVA_HOME to the path where the J2SE 5.0 (JDK5.0) is installed
      goto end

      First off, J2SE 5.0 is relative to JDK 1.5 (not JDK 5.0). Also, J2SE 5.0 is EOSL as of October 2009 (http://www.oracle.com/technetwork/java/eol-135779.html).

      Anyway, I think the message is misleading since it's specifying JDK 1.5, makes one wonder, does the tool(s) work with JDK 1.6. We do know that they do, so the message is incomplete. I guess the message was created to imply that 1.4 is not supported, and this was probably done prior to JDK 1.6 being released.

      My recommendation: I would change the message in all of the scripts to something like this:

      :no_java_home
      echo ERROR: Set JAVA_HOME to the path where J2SE 5.0 or later is installed
      goto end

      Also, it looks like the windows batch file equivalences do not show this message at all... consider adding it to all of the batch files as well.

      Thanks!

      Attachments

        Issue Links

          Activity

            People

              dkulp Daniel Kulp
              bost Rostislav Svoboda
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: