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

cxf tools should honor "java.home" property to search javac for compiling generated java beans.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.3
    • 2.1.4
    • None
    • None
    • jdk 1.6
      ubuntu 8.04

    Description

      When I am using cxf tools to generate web service artifacts, if choosing to compile generated java beans, my system initially shown me a error msg like this:
      "Syntax error, annotations are only available if source level is 5.0"

      After studying for a while, found out it's caused by incorrect javac used for compilation.

      Current cxf tooling Compiler.java assume to use the "javac" on the PATH variable, it doesn't honor JAVA_HOME setting when setted for excuting cxf tools.

      I think it might be better to check to use "javac" in the JAVA_HOME path, then use the one in the PATH variable.

      Make sense?

      Attachments

        1. cxf-1992.patch
          4 kB
          Ming Xia

        Issue Links

          Activity

            People

              dkulp Daniel Kulp
              xiaming Ming Xia
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: