java.lang.NoClassDefFoundError: java.text.DecimalFormat

Keith Boynton
Fri Dec 4 08:34:00 GMT 2009

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 
undefined reference to `Test::class$$'
collect2: ld returned 1 exit status

Any help would be greatly appreciated


More information about the Java mailing list