This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the GCJ project. See the GCJ home page for more information.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
OK, is there a FAQ somewhere? If not, is there at least a searchable
index for the archives?
Something that should go into the FAQ is the comment made by Urban Widmark
<urban@svenskatest.se> in response to a posting by Denis Y. Pershin"
<dyp@inetlab.com> :
[begin quote]
> Than I wrote a simple app:
>
> bash-2.02$ cat Main.java
> public class Main {
> public static void main(String argv[]) {
> System.out.println("Hello world");
> }
> }
>
> Than I compiled it:
> gcj --main=Main Main.java -o m -lpthread
>
> And successully get a core :-)))
> bash-2.02$ ./m
> Segmentation fault (core dumped)
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
Do you have your CLASSPATH set? If so, try unset'ing it.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I got some strange Out of memory error on a very similar :) HelloWorld
program. Recompiling without classpath solved this for me.
[end quote]
I ran into exactly the same problem myself, and unset'ting the CLASSPATH
fixed it for me too.
-Greg