This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCJ Porting for RTEMS Status Report


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
      <<No stacktrace available>>

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");
    }
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]