Hi Just starting out into the world of gcj and I can't get my helloworld.java to run on amd64. Taken the same code to a 32 bit system and it worked straight out. Is any one else using gcj on amd64 ? had any problems ? class Hello { public Hello() {}; public static void main(String args[]) { int returnCode = 0; System.out.println("hello world\r\n"); System.exit(returnCode); } } gcj -v --main=Hello -o Hello.exe Hello.java alex@hufpuf:/tmp/j$ ./Hello.exe bash: ./Hello.exe: Permission denied alex@hufpuf:/tmp/j$ strace ./Hello.exe execve("./Hello.exe", ["./Hello.exe"], [/* 36 vars */]) = -1 EACCES (Permission denied) dup(2) = 3 fcntl(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE) fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b7861a1e000 lseek(3, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek) write(3, "strace: exec: Permission denied\n", 32strace: exec: Permission denied ) = 32 close(3) = 0 munmap(0x2b7861a1e000, 4096) = 0 exit_group(1) = ? Process 11971 detached
Attachment:
signature.asc
Description: Digital signature