[kaffe] Problem with Strings/Xml Parsing while trying to run an embedded Jetty
Ito Kazumitsu
kaz at maczuka.gcd.org
Tue Oct 18 08:13:27 PDT 2005
Hi,
Let's discuss the problem of System.out.println first.
From: Rafael Teixeira <monoman at gmail.com>
Date: Tue, 18 Oct 2005 10:45:06 -0200
> > > > > usr/bin/kaffe -jar ../../../java/inteligenciafiscal/inteligenciafiscal.jar
> > > > > Software B\uffffsico do M\uffffdulo Fiscal de Seguran
> > > > > Vers\uffffo: 01.00.00
> But alas if you want the code:
>
> private void _Iniciar(String[] args)
> {
> System.out.println("Software Básico do Módulo Fiscal
> de Segurança");
> System.out.print("Versão: ");
> System.out.println(VersãoDesteSoftwareBásico);
> ...
>
> It is on a utf-8 encoded source, edited and compiled with Eclipse 3.0
> (what I think it means it is compiled with Sun's Javac).
I wrote this:
public class TestLatin1 {
public static void main(String[] args) {
System.out.println("Software Básico do Módulo Fiscal de Segurança");
System.out.flush();
}
}
Then I compiled it with Sun's Javac using the command:
javac -encoding UTF-8 TestLatin1.java
And ran the class file with kaffe:
$ kaffe TestLatin1
Software Básico do Módulo Fiscal de Segurança
I do not see any problem.
> I compile it into a fatjar(with onejar). And start with:
>
> java -jar myfatjar.jar
>
> or
>
> kaffe -jar myfatjar.jar
I also made an executable jar file. And got the same result:
$ kaffe -jar foo.jar
Software Básico do Módulo Fiscal de Segurança
More information about the kaffe
mailing list