can't run *.class with GIJ
Sun Oct 20 09:37:00 GMT 2002
On Sun, 20 Oct 2002, Utku Ozcan wrote:
> GIJ doesn't seem to run *.class files by me.
gcj doesn't have a bytecode interpreter for Solaris yet. Soon, perhaps.
> unix> gcj -shared -o HelloWorldApp.so HelloWorldApp.java
> Text relocation remains referenced
> against symbol offset in file
> <unknown> 0xb4 /var/tmp/ccQdiPmu.o
> ld: fatal: relocations remain against allocatable but non-writable sections
> collect2: ld returned 1 exit status
You need -fPIC to compile a DSO.
More information about the Java