This is the mail archive of the java-discuss@sourceware.cygnus.com 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]

Re: NewBie question: Segmentation faults


>>>>> "Alexis" == Alexis Denis <adenis@EE.UManitoba.CA> writes:

Alexis> I do the following:
Alexis> gcj --main=HelloWorld -o HelloWorld HelloWorld.java

This is right.

Alexis> my CLASSPATH variable points to:
Alexis> /home/adenis/java/classes
Alexis> in which I uncompressed libgcj.zip (as recommended in the FAQ 5.1)

The FAQ doesn't recommend uncompressing libgcj.zip.

Alexis> Everytime I run the program HelloWorld I get a core dump.

Your best bet is simply to unset CLASSPATH.
Failing that, point it directly at libgcj.zip.

Do this before compiling. your program.

If that fails, send a stack trace.

Tom

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