Compilation of 2-classes program. Help!

Przemyslaw Pokrywka emo@2com.pl
Tue Sep 12 12:23:00 GMT 2000


How to compile program containig more than 1 class?When I tried to compile my simple 2-class program, I got following
results:

Script started on Mon Sep 11 22:49:55 2000
$ ls
Info.java  Raport.java
$ cat Info.java Raport.java
// Info.java
public class Info {
public static String getInfo() {
return "some info";
}
}
// Raport.java
public class Raport {
public static void main(String[] args) {
System.out.println("Here is the info"
+ Info.getInfo()
);
}
}
$ gcj --main=Raport -v -o raport Raport.java
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs
Reading specs from /usr/lib/libgcj.spec
rename spec lib to liborig
gcc version 2.95.2 20000220 (Debian GNU/Linux)
/usr/lib/gcc-lib/i386-linux/2.95.2/jc1 Raport.java -quiet -g1 -version
-o /tmp/ccSp2L3h.s
GNU Java version 2.95.2 20000220 (Debian GNU/Linux) (i386-linux)
compiled by GNU C version 2.95.2 20000220 (Debian GNU/Linux).
gcj: Internal compiler error: program jc1 got fatal signal 11
$
Script done on Mon Sep 11 22:50:24 2000

Thanks in advance

Przemyslaw Pokrywka
emo@2com.pl


More information about the Java mailing list