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

"Keith Boynton" <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <AF8BC899F9584032B2C715620775ACA2@Flaresnazzy>
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
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.