This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]