AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem z GCJ

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help
View previous topic :: View next topic  
Author Message
Tomasz Ciszkowski
Guest





PostPosted: Tue Jul 08, 2003 7:25 am    Post subject: Problem z GCJ Reply with quote



Czesc,

Mam problem z GCJ-tem pod Linuchem RH8.0
Osluga wyjatkow nie dziala:(

Skompilowalem kawalek najprostrzego kodu
typu "Hello, world" przy pomocy GCJ 3.2.3.
Dla testu wymusilem wyjatek w sekcji try-catch.
Kiedy wyjątek się pojawia program zatrzymuje się
z monitem segmentation fault.

-------------------------------------------
Source: -----------Tester.java
-------------------------------------------
import java.io.*;
public class Tester {
public static void main(String args[]) throws Exception
{
try {
System.out.println("Hello, world!");
throw new Exception("Some error!"); // here it stops
} catch (Exception e) {
e.printStackTrace();
}
}
}
-------------------------------------------
running ....
-------------------------------------------
$ gcj -Wall -g -c Tester.java
$ gcj -Wall -g --main=Tester -o Tester Tester.o
$ ./Tester
Hello, world!
Segmentation fault
-------------------------------------------

Czy ktos ma jakis pomysl jak usprawnic GCJ'ta?

Dzieki za pomoc,
--
Z powazaniem
Tom



Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.