NewBie question: Segmentation faults

Alexis Denis adenis@EE.UManitoba.CA
Sat Apr 1 00:00:00 GMT 2000


I give up.
I'm trying to compile the following program:
class HelloWorld {
 public static void main (String args[]) {
 System.out.println("Hello World!");
 }
}
I do the following:
gcj --main=HelloWorld -o HelloWorld HelloWorld.java
my CLASSPATH variable points to:
/home/adenis/java/classes
in which I uncompressed libgcj.zip (as recommended in the FAQ 5.1)
Everytime I run the program HelloWorld I get a core dump.
I'm running linuxppc 1999Q3. gcj comes from the archive
gcc-java-2.95.1-0a which contains:
/usr/bin/gcj
/usr/bin/gcjh
/usr/bin/jcf-dump
/usr/bin/jv-scan
/usr/lib/gcc-lib
/usr/lib/gcc-lib/ppc-redhat-linux
/usr/lib/gcc-lib/ppc-redhat-linux/2.95.1
/usr/lib/gcc-lib/ppc-redhat-linux/2.95.1/include
/usr/lib/gcc-lib/ppc-redhat-linux/2.95.1/jc1
/usr/lib/gcc-lib/ppc-redhat-linux/2.95.1/jvgenmain
/usr/lib/gcc-lib/ppc-redhat-linux/2.95.1/nof
and I compiled libgcj 2.95.1
I read quite a bit of the archived list but I couldn't find any
solution. Please help!
Thanks,
Alexis


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /