Segmentation fault
Hi, my program compiles, but when I run it I get "segmentation fault".
Could someone tell me what that is, and what causes it?
I did a Google search and it seems to have something to do with the packages installed, but the Java on my computer was not installed by me, so I don't know how to fix this.
I tested a very simple program which I wrote which previously worked on another computer, so I don't think it has to do with the actual code itself.
I'm using Linux/Mandriva.
Cheers!
java version "1.4.2"
JamVM version 1.4.3
Copyright (C) 2003-2006 Robert Lougher <rob@lougher.org.uk>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
[url= http://jamvm.sourceforge.net/]JamVM[/url] appears to be another front-end to GNU classpath -- try uninstalling JamVM. I think on Mandriva it might be (but don't quote me): urpmi --remove jamvmThen, install Sun Java and try your test program again.