public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcj does not print (PrintWriter, OutputStreamWriter)
@ 2011-11-27  3:33 Oliver Kullmann
  2011-11-28 17:51 ` Andrew Haley
  0 siblings, 1 reply; 2+ messages in thread
From: Oliver Kullmann @ 2011-11-27  3:33 UTC (permalink / raw)
  To: gcc-help

Hello,

we use

> gcj --version
gcj (SUSE Linux) 4.5.1 20101208 [gcc-4_5-branch revision 167585]

I have a simple collection of java-files, constituting a program
"GeneralisedTicTacToe". Compiling the .java-files with "gcj -C"
to .class-files, and then running "java GeneralisedTicTacToe"
it all works, where we use

> java -version
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.4) (suse-0.3.2-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)

However, when attempting, via "gcj --main=GeneralisedTicTacToe *.class",
to create a binary via gcj, we don't get error messages, but
the resulting binary does not work properly: it has problems with
output to standard output as well as input from standard input.

The problem with standard output is easier to describe: It just
prints nothing, when calling
out.printf(format, args);
where
out = new PrintWriter(new OutputStreamWriter(System.out, charsetName), true);
using
import java.io.PrintWriter;
import java.io.OutputStreamWriter;

I didn't find such problems in the Internet nor on gcj's FAQ.

Thanks for your consideration.

Oliver

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gcj does not print (PrintWriter, OutputStreamWriter)
  2011-11-27  3:33 gcj does not print (PrintWriter, OutputStreamWriter) Oliver Kullmann
@ 2011-11-28 17:51 ` Andrew Haley
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Haley @ 2011-11-28 17:51 UTC (permalink / raw)
  To: gcc-help

On 11/26/2011 02:30 PM, Oliver Kullmann wrote:
> I didn't find such problems in the Internet nor on gcj's FAQ.
> 
> Thanks for your consideration.

I've never had such a problem.  Please send a test case.

Andrew.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-28 10:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-27  3:33 gcj does not print (PrintWriter, OutputStreamWriter) Oliver Kullmann
2011-11-28 17:51 ` Andrew Haley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).