Return-Path: X-Original-To: apmail-ant-dev-archive@www.apache.org Delivered-To: apmail-ant-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8481E7E82 for ; Sat, 22 Oct 2011 05:14:19 +0000 (UTC) Received: (qmail 76679 invoked by uid 500); 22 Oct 2011 05:14:19 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 76644 invoked by uid 500); 22 Oct 2011 05:14:18 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 76636 invoked by uid 99); 22 Oct 2011 05:14:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Oct 2011 05:14:17 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [88.84.128.168] (HELO samaflost.de) (88.84.128.168) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Oct 2011 05:14:09 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by samaflost.de (Postfix) with ESMTP id 432A128985D1 for ; Sat, 22 Oct 2011 07:13:49 +0200 (CEST) Received: from samaflost.de ([127.0.0.1]) by localhost (v35516.1blu.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id n0c6QR+Q8MkQ for ; Sat, 22 Oct 2011 07:13:48 +0200 (CEST) Received: by samaflost.de (Postfix, from userid 1000) id 9FDE028985D2; Sat, 22 Oct 2011 07:13:48 +0200 (CEST) From: Stefan Bodewig To: dev@ant.apache.org Subject: Re: pathelement triggers NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider References: Date: Sat, 22 Oct 2011 07:13:48 +0200 In-Reply-To: (Michael B. Allen's message of "Fri, 21 Oct 2011 16:58:32 -0400") Message-ID: <8762jh4nhv.fsf@v35516.1blu.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org Hi Michael, On 2011-10-21, Michael B Allen wrote: > I'm posting this to dev instead of users because my best guess is that > this is a bug. Probably not. > Consider the following target which runs a Java program MakeFoo.class: > > > > > > > > > This generates the following exception: > $ ant foo > Buildfile: /some/path/to/build.xml > foo: > [java] java.lang.NoClassDefFoundError: > com/sun/net/ssl/internal/ssl/Provider > [java] at > org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194) [...] > [java] Java Result: -1 > Java and Ant versions are pretty much the latest: > If I remove the pathelement directive, the build works. If you don't specify the explicitly your Java process runs with the same CLASSPATH that is used by Ant internally - which includes jsse.jar. If you specify it, then you only get what you have asked for (unless you fiddle with the build.sysclasspath property), or close to it. I think it should work if you explicitly add if you don't like hardcoding jsse.jar (which you could address relative to ${java.home}). Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org