This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: java.lang.NoClassDefFoundError: java.text.DecimalFormat
I do apologise for the lack of information I provided.
I'm using the latest version of the JavaNativeCompiler which (as I'm sure
you aware) is a front end to GCJ 4.3.
The OS is indeed Windows.
Here is a short test case that does reproduce the error.
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
public class Test {
public static void main(String[] args) {
try {
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer objXSLT = tFactory.newTransformer(new
javax.xml.transform.stream.StreamSource("c:\\some.xsl"));
} catch (Exception objException) {
}
}
}
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
Keith