From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7891 invoked by alias); 13 Jun 2011 22:12:10 -0000 Received: (qmail 7883 invoked by uid 22791); 13 Jun 2011 22:12:09 -0000 X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST X-Spam-Check-By: sourceware.org Received: from mail-iw0-f175.google.com (HELO mail-iw0-f175.google.com) (209.85.214.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 13 Jun 2011 22:11:54 +0000 Received: by iwn19 with SMTP id 19so2974451iwn.20 for ; Mon, 13 Jun 2011 15:11:53 -0700 (PDT) Received: by 10.42.175.198 with SMTP id bb6mr568527icb.375.1308003113309; Mon, 13 Jun 2011 15:11:53 -0700 (PDT) Received: from [192.168.2.10] (ool-18b8fc79.dyn.optonline.net [24.184.252.121]) by mx.google.com with ESMTPS id x13sm2984216ibh.50.2011.06.13.15.11.51 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Jun 2011 15:11:52 -0700 (PDT) Message-ID: <4DF68B27.5080504@gmail.com> Date: Mon, 13 Jun 2011 22:12:00 -0000 From: Franklin Chou User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Andrew Haley CC: java@gcc.gnu.org Subject: Re: GCJ Porting for RTEMS Status Report References: <4DF5D4F1.2070300@redhat.com> In-Reply-To: <4DF5D4F1.2070300@redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg00019.txt.bz2 Thank you for the quick reply but I don't think they are relevant to the question I am asking. You see the code that you have provided compiles (using gcj) perfectly fine. But the code I am using contains String.split() method which the attached code does not have. The .split() is causing a runtime error where the program terminates with: Exception in thread "main" java.lang.Error: Not implemented <> I understand that Andrew had a similar problem which he brought up in the 2005 post, but after reading it I still have no idea how to go about linking regexp to the jre. If anyone can shed some light on this particular issue. That'd be great. Also I'd love to help testing, giving bug reports etc. I do use linux both through Cygwin and through a dedicated box every day. Franklin On 6/13/2011 5:14 AM, Andrew Haley wrote: > public class HelloWorld{ >> public static void main(String args[]){ >> ThreadTest t=new ThreadTest(); >> Thread t1=new Thread(t); >> System.out.println("GCJ For RTEMS in Java!---in HelloWorld.java"); >> try{ >> System.out.println(args[100]+"for raise an exception"); >> }catch(Exception e){ >> System.out.println(e.getMessage()+"---in an Exception"); >> } >> t1.start(); >> } >> } >> class ThreadTest extends Thread{ >> public void run(){ >> System.out.println("ThreadTest from HelloWorld!---in a new thread"); >> } >> }