title: what is the exact way to use Endorsed directory in jdk1.6
body: <p>I want to upgrade my jaxws to 2.2 (jdk1.6 comes bundled with jaxws 2.1). My jdk is (I did not install public jre):</p>
  
  <pre><code>java version "1.6.0_20"
  Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
  Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode)
  </code></pre>
  
  <p>In <a href="https://metro.dev.java.net/guide/Using_JAX_WS_2_1_with_JavaSE6.html" rel="noreferrer">jaxws' own doc</a> they explain how to do it:</p>
  
  <p>One way to fix this is to copy jaxws-api.jar and jaxb-api.jar into JRE endorsed directory, which is <code>$JAVA_HOME/lib/endorsed (or $JDK_HOME/jre/lib/endorsed)</code></p>
  
  <p>But I am not sure this is having any effect in my installation. For starters I have only defined <code>%JAVA_HOME%</code>. And folder <code>$JAVA_HOME/lib/endorsed</code> is inexistant, so I created and copied the two jars. But if I do (wsgen is a tool from jaxws)</p>
  
  <pre><code>wsgen -version
  </code></pre>
  
  <p>I still get:</p>
  
  <pre><code>JAX-WS RI 2.1.6 in JDK 6
  </code></pre>
  
  <p>I also tried creating folder <code>JAVA_HOME\jre\lib\endorsed</code> (notice that in the doc they say JDK_HOME, but as I only have JAVA_HOME I used this path). Still same wsgen output.</p>
  
  <p>My questions are:</p>
  
  <ol>
  <li>What is the difference between JAVA_HOME and JDK_HOME in the doc page? anything significant or just two ways to refer to JAVA_HOME ?</li>
  <li>Is 'wsgen -version' a valid way to check jaxws version that is used or this always calls the exe in the original jdk, but it does not mean endorsed jars will be used?</li>
  <li>Anyone knows <strong>very detailed steps</strong> to install jaxws2.2 in a jdk.16?</li>
  </ol>
  
  <p>I found <a href="http://forums.sun.com/thread.jspa?threadID=523042" rel="noreferrer">this post</a> that has some hints about what I am seeing I think</p>