java.lang.NoClassDefFoundError: java.text.DecimalFormat

Keith Boynton keithboynton@flaredesign.co.uk
Mon Nov 30 21:13:00 GMT 2009


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 


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /