From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32671 invoked by alias); 30 Nov 2009 21:13:05 -0000 Received: (qmail 32661 invoked by uid 22791); 30 Nov 2009 21:13:04 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp.srv.host-it.co.uk (HELO smtp.srv.host-it.co.uk) (194.150.252.66) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 30 Nov 2009 21:12:57 +0000 Received: from Flaresnazzy (cpc2-hem15-0-0-cust568.lutn.cable.ntl.com [86.5.90.57]) (Authenticated sender: hcu1116b) by smtp.srv.host-it.co.uk (Postfix) with ESMTP id A3C902F71DB; Mon, 30 Nov 2009 21:14:16 +0000 (GMT) Message-ID: From: "Keith Boynton" To: "Andrew Haley" Cc: References: <4D9C110C42174F1D8C77A1E18D8F3EF3@Flaresnazzy> <4B13E895.2050202@redhat.com> In-Reply-To: <4B13E895.2050202@redhat.com> Subject: Re: java.lang.NoClassDefFoundError: java.text.DecimalFormat Date: Mon, 30 Nov 2009 21:13:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2009-11/txt/msg00086.txt.bz2 I do apologise for the lack of information I provided. I'm using the latest version of the JavaNativeCompiler which (as I'm sure you aware) is a front end to GCJ 4.3. The OS is indeed Windows. Here is a short test case that does reproduce the error. import javax.xml.transform.Transformer; import javax.xml.transform.TransformerFactory; public class Test { public static void main(String[] args) { try { TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer objXSLT = tFactory.newTransformer(new javax.xml.transform.stream.StreamSource("c:\\some.xsl")); } catch (Exception objException) { } } } Command generated by JavaNativeCompiler: gcc-122233-win\bin\gcj --main=Test -fjni -Djava.library.path=lib -Dsun.java2d.fontpath= -Djava.home=. -Djava.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment -Dawt.toolkit=sun.awt.windows.WToolkit -Dsun.io.unicode.encoding=UnicodeLittle -Llibs/win -Ilibs/win/gui/gui.jar -oC:\JavaNativeCompiler-1.1.1\compiled\test.exe -s -O2 c:\temp\templib\* -findirect-dispatch -ljncTrial -IC:\\EclipseWorkspace\Test\src @C:\Temp\JNCTempaoljps.out\SourceListaoljpt.list It's worth noting that c:\temp\templib contains the .o files extracted from libgcj.a using ar.exe x libgcj.a Keith