After install: HelpWorld (HelloWorld!)

ivanfg@bigfoot.com ivanfg@bigfoot.com
Sat Apr 1 00:00:00 GMT 2000


 Hello people,
 What is wrong? This describes my first attempt to compile using gcj after install:
HelloWorld.java
public class HelloWorld {
	public static void main(String[] args) 
	{
		if(args.length == 0 || args.length > 2) 
		{
			System.out.println("Hello World!\n"); 
		}
		else if(args.length == 1) 
		{
			System.out.println(args[0]); 
		}
		else if(args.length == 2) 
		{
			System.out.println(args[0] + " " + args[1]); 
		}
	}
}
 $ gcj --main=HelloWorld -o Hello HelloWorld.java
 
 Looks good, no error message...
 But when a try ./Hello... I receive a lot of strange things:
 $ ./Hello
 Hello World!
 file.encodingP ð@à0€Ð pÀ`°P ð@à0€Ð
pÀ`°P ð@à0°Ðmissing default encoding° gnu.gcj.convert.Output_(8ààä (  8 ä ( 8 ä °mark/reset
not supported` (À 88€ä °ava.lang.ThreadGroup[name=(à8konsolekonsolekonsolekonsolekonsoleko
nsolekonsoleÀä ° couldn't find 8859_1 encode0H`x¨ÀØ 8Ph€˜°Èàø(@Xpˆ ¸Ðèr 0Hkonsole`x¨ÀØ
8Ph€˜°Èàø(@Xpˆ ¸Ð0H`x¨ÀØ 8Ph€˜°Èàø(@Xpˆ ¸Ð0H`x¨ÀØ 8Phèè €˜°Èàø(@Xpˆ 0P° 
 È (¨°Ðàø Hp ˜@ذذ :p8°8/ `€°Ð€Pð@°ø}°{°(\u°@\°X\\°p\t°ˆ\r° \n°¸# °Ð#°è=0°€
ˆ€À°`konsoleko° nsolekonsolekonsole, °x[°,°¨]°À°Ø: 0@P`p€ °ÀÐàð 0@P`p€ °ÀÐàð
0@P`p€ °À Ðàð 0@P`p€ °ÀÐàð 0@P`p€ °ÀÐàð 0@P`p€ °ÀÐàð 0@P`p€ °ÀÐàð 0@P`p€ °ÀÐàð 0
@P`p€ °ÀÐàð 0@P`p€ °ÀÐàð 0@P`p€ °ÀÐàð 0@P`p€ °ÀÐàð 0@P`p€ °ÀÐàð 0@P`p€
etc, etc.
 Why happens this? Thanks again!
 [],
 Ivan
 P.S.: Linux Red Hat 6.0 (Hedwig) 2.2.5-15 #1 on i586


More information about the Java mailing list

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