From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27714 invoked by alias); 30 Nov 2009 15:39:12 -0000 Received: (qmail 27703 invoked by uid 22791); 30 Nov 2009 15:39:11 -0000 X-SWARE-Spam-Status: No, hits=-1.3 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 15:38:56 +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 1D1E42F71FA for ; Mon, 30 Nov 2009 15:40:15 +0000 (GMT) Message-ID: <4D9C110C42174F1D8C77A1E18D8F3EF3@Flaresnazzy> From: "Keith Boynton" To: Subject: java.lang.NoClassDefFoundError: java.text.DecimalFormat Date: Mon, 30 Nov 2009 15:39: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/msg00080.txt.bz2 Hi folks, I'm pretty new to GCJ, however I have been making good progress. I've managed to resolve quite a few issues. I have reached a problem I'm really struggling to resolve though. I'm successfully compiling my project and have managed to resolve quite a few "NoClassDefFoundError"s, by various methods. However the fix for this one is really eluding me... Exception in thread "main" java.lang.NoClassDefFoundError: java.text.DecimalFormat at gnu.xml.transform.Stylesheet.initDefaultDecimalFormat I have the following in my code to try and force linking... private static final Class class3 = java.text.DecimalFormat.class; static { java.text.DecimalFormat.class.getName(); } I have a version of rt.jar that I know definitely contains java/text/DecimalFormat.class that is being compiled. I'm using the following flags: -Wl,--allow-multiple-definition -findirect-dispatch Can anyone give me a few pointers as to what I need to do to get this class included in my binary? Thanks in advance Keith