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]

crosscompiled apps wont run


Hi,
I got rid of all of my old binutils & gcc files and rebuilt the mingw 
crosscompiler from scratch.I used the compile options posted in the previous 
emails.

Now it works. At least the c crosscompiler produces valid windows executables.

GCJ on the other hand produces invalid executables. Here is what I get when I 
try to run my hello world java app with wine.

wine a.exe
fixme:msvcrt:MSVCRT_signal (11 0x4014bc):stub
fixme:msvcrt:MSVCRT_signal (8 0x4014ec):stub
fixme:msvcrt:MSVCRT_signal (11 (nil)):stub
err:seh:EXC_DefaultHandling Unhandled exception code c0000005 flags 0 addr 
0xffffffff

I compiled with
mingw32-gcj Mry.java  --main=Mry

This is my sourcefile.

public class Mry{
        public static void main(String arg[]){
                System.out.println("Yo");
        }
}


Any idea how to get a working gcj crosscompiler going?

Or maybe Mohan could post a linux binary tarball along with his windows 
release :)

Taras


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