This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: java.lang.NoClassDefFoundError: java.text.DecimalFormat
- From: Andrew Haley <aph at redhat dot com>
- To: Keith Boynton <keithboynton at flaredesign dot co dot uk>
- Cc: Ben Gardiner <BenGardiner at nanometrics dot ca>, java at gcc dot gnu dot org
- Date: Fri, 04 Dec 2009 09:46:52 +0000
- Subject: Re: java.lang.NoClassDefFoundError: java.text.DecimalFormat
- References: <4D9C110C42174F1D8C77A1E18D8F3EF3@Flaresnazzy><4B13E895.2050202@redhat.com><AF8BC899F9584032B2C715620775ACA2@Flaresnazzy> <4B143604.6070607@nanometrics.ca> <D83D2778B6F940F4B89E5F360F89428B@Flaresnazzy>
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.