Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I experienced the same stylesheet problem within Eclipse using the following environment:</p> <ul> <li>Windows 7 x64</li> <li>Eclipse 3.7.2 (SR2) 32-bit</li> <li>JDK 1.6.0_32 32-bit</li> <li>Ant 1.7.2 (from Eclipse) or 1.7.4 (from Apache, current)</li> <li>Junit 4.8.1 (project dependency)</li> </ul> <p>My build succeeds while using JDK 1.6.0_31, so it appears the stylesheet problem is an Ant or Java bug introduced with the release of Java 6 build 32. I could not find any reports in Apache's Bugzilla system. If it helps someone, these are the bug fixes included in build 32: <a href="http://www.oracle.com/technetwork/java/javase/2col/6u32bugfixes-1579554.html" rel="nofollow noreferrer">http://www.oracle.com/technetwork/java/javase/2col/6u32bugfixes-1579554.html</a> </p> <p>My current workaround is to use Java 6 JDK build 31.</p> <p><strong>Update: Workaround to use a newer JDK</strong></p> <p>The Ant failures from <em>within</em> Eclipse started with a defect introduced in Java 6u32 and Java7u4. The saga is reported in <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=384757" rel="nofollow noreferrer">Eclipse Bug #384757</a>, including a workaround allowing you to use newer JDKs.</p> <ul> <li>Download the <code>org.apache.xalan</code> and <code>org.apache.xml.serializer</code> plug-ins from the <a href="http://download.eclipse.org/tools/orbit/downloads/" rel="nofollow noreferrer">Eclipse Orbit project</a></li> <li>Copy them to a directory listed in the Java <code>java.ext.dirs</code> property</li> </ul> <p>I use the following directories because they are defined by default and independent of JDK version:</p> <ul> <li>On Windows: <code>C:\Windows\Sun\Java\lib\ext</code></li> <li>On Mac: <code>/Users/$USER/Library/Java/Extensions</code></li> </ul> <p>The root problem was reported to Oracle, but <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7167657" rel="nofollow noreferrer">the bug is no longer in their bug database</a>. I am not optimistic it will ever be fixed.</p> <p><strong>Update: Apache fixed the problem in Ant</strong></p> <p>Apache has fixed the root problem; it may be available in the Ant 1.9.0 release (<a href="https://issues.apache.org/bugzilla/show_bug.cgi?id=54641" rel="nofollow noreferrer">Apache Bug #54641</a>).</p> <p><strong>Update: Ant 1.9.1 scheduled for Eclipse 4.4</strong></p> <p>As @OliBlogger mentioned, Apache fixed the root problem in Ant 1.9.1. Eclipse plans to <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=395421" rel="nofollow noreferrer">update to Ant 1.9.1 in Eclipse 4.4</a> (perhaps sooner, the Eclipse bug system does not yet have 4.3.x milestones).</p> <p><strong>Update: Fixed in Eclipse 4.4</strong></p> <p>I confirmed that my build now succeeds using Java 7 JDK build 67 and Ant 1.9.2 distributed with Eclipse 4.4.1 (Windows 7) without using the Orbit plug-in workaround.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload