0 Replies Latest reply: Feb 6, 2012 3:57 AM by 701645 RSS

    How to use javac to replace deprecated wsgen or apt in JDK 7?

    701645
      I am using jax-ws RI for web service and generating web service artifacts using wsgen.

      When I use wsgen or apt to generate web service artifacts in JDK 7 with following command.

      wsgen -s src -cp CLASS_PATH -d OUTPUT_DIRECTORY  com.sun.WebServiceSEI

      displays following warning message

      The apt tool and its associated API contained in the package com.sun.mirror have been deprecated since JDK 7 and are planned to be removed in the next major JDK release. Use the options available in the javac tool and the APIs contained in the packages javax.annotation.processing and javax.lang.model to process annotations.

      How can I generate web service artifacts using javac instead of wsgen or apt ?

      Edited by: user11128702 on Feb 6, 2012 1:54 AM

      Edited by: user11128702 on Feb 6, 2012 1:57 AM