From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18455 invoked by alias); 4 Dec 2009 08:34:31 -0000 Received: (qmail 18444 invoked by uid 22791); 4 Dec 2009 08:34:30 -0000 X-SWARE-Spam-Status: No, hits=-2.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; Fri, 04 Dec 2009 08:34:19 +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 33D372F72B3; Fri, 4 Dec 2009 08:35:51 +0000 (GMT) Message-ID: From: "Keith Boynton" To: "Ben Gardiner" Cc: "Andrew Haley" , References: <4D9C110C42174F1D8C77A1E18D8F3EF3@Flaresnazzy><4B13E895.2050202@redhat.com> <4B143604.6070607@nanometrics.ca> In-Reply-To: <4B143604.6070607@nanometrics.ca> Subject: Re: java.lang.NoClassDefFoundError: java.text.DecimalFormat Date: Fri, 04 Dec 2009 08:34: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-12/txt/msg00019.txt.bz2 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 Any help would be greatly appreciated Keith