From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9588 invoked by alias); 4 Dec 2009 09:47:08 -0000 Received: (qmail 9575 invoked by uid 22791); 4 Dec 2009 09:47:07 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Dec 2009 09:47:03 +0000 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nB49kwtJ011945 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 4 Dec 2009 04:46:58 -0500 Received: from zebedee.pink (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nB49krxS031840; Fri, 4 Dec 2009 04:46:56 -0500 Message-ID: <4B18DA8C.9030205@redhat.com> Date: Fri, 04 Dec 2009 09:47:00 -0000 From: Andrew Haley User-Agent: Thunderbird 2.0.0.23 (X11/20090825) MIME-Version: 1.0 To: Keith Boynton CC: Ben Gardiner , java@gcc.gnu.org Subject: Re: java.lang.NoClassDefFoundError: java.text.DecimalFormat References: <4D9C110C42174F1D8C77A1E18D8F3EF3@Flaresnazzy><4B13E895.2050202@redhat.com> <4B143604.6070607@nanometrics.ca> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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-12/txt/msg00022.txt.bz2 Keith Boynton wrote: > Hi guys, > > Sorry for the delay in providing some feedback, I was trying to resolve some > nuances in the Java Native Compiler that were making it difficult to specify > the flags in the correct order. I was unable to resolve that, so I switched > to straight command line entry. > > I tried your suggestion, here's the full command: > > 1. cd to src tree containing the .java source > 2. Execute the following: C:\JavaNC\gcc-122233-win\bin\gcj -o > C:\JavaNC\projects\Test\compiled\test.exe -Wl,--whole-archive -lgcj_properties > -Wl,--no-whole-archive -static-libgcj --main=Test > > This gives me the following error at compile time: > C:\Users\KEITHB~1\AppData\Local\Temp/ccw9aaaa.o: In function > `main':C:/Users/KEITHB~1/AppData/Local/Temp/ccCuaaaa.i:(.text+0x25): > undefined reference to `Test::class$$' > collect2: ld returned 1 exit status You haven't given gcj anything to compile. :-) Andrew.