Re: java.lang.NoClassDefFoundError: java.text.DecimalFormat

Ben Gardiner <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
Keith Boynton wrote:
> Command generated by JavaNativeCompiler:
> gcc-122233-win\bin\gcj
>         --main=Test
>         -fjni
>         -Djava.library.path=lib
>         -Dsun.java2d.fontpath=
>         -Djava.home=.
>         -Djava.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
>         -Dawt.toolkit=sun.awt.windows.WToolkit
>         -Dsun.io.unicode.encoding=UnicodeLittle
>         -Llibs/win
>         -Ilibs/win/gui/gui.jar
>         -oC:\JavaNativeCompiler-1.1.1\compiled\test.exe
>         -s
>         -O2
>         c:\temp\templib\*
>         -findirect-dispatch
>         -ljncTrial
>         -IC:\\EclipseWorkspace\Test\src
>         @C:\Temp\JNCTempaoljps.out\SourceListaoljpt.list
>
> It's worth noting that c:\temp\templib contains the .o files extracted 
> from libgcj.a using ar.exe x libgcj.a
It seems that the command is missing  '-Wl,--whole-archive' before 
'c:\temp\templib\*' and '-Wl,--no-whole-archive' after it.

,Ben
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.