Debugging HelloWorld program

Bryce McKinlay bryce@albatross.co.nz
Wed Oct 11 14:05:00 GMT 2000


Tom.Williams@diversifiedsoftware.com wrote:
> I tried setting "LANG=en_US.UTF-8" to get the program to run and it still
> isn't running (or I'm just not patient enough). I let the program run for
> about an hour or so and it still didn't print out my "Hello World" message.

This isn't a problem I've seen, but I'm running on Red Hat 6.2 and 7.0
systems. Perhaps its dependent on the glibc version.
> So basically, I want to make sure I'm using a good debugger version and I
> need to know if I need to set the "GCJ_PROPERTIES" environment variable and
> if so to what?

GCJ_PROPERTIES is an environment var that maps into java properties:
* Support for specifying java system properties. Properties can either be set
at runtime via the GCJ_PROPERTIES environment variable in the format
"<name>=<value> ..."'; or can be compiled into an application binary using
-D<name>=<value>.
You shouldn't need to set it unless you want to set properties that are
viewable from your Java program via the System.getProperties() call.
gdb 5.0 should work fine for most debugging tasks. I would suggest running
your program for a while, then hitting ctrl-C after its been "hung" for a few
seconds. Then enter "bt" and you should get a fairly good idea of where the
problem is.
regards
 [ bryce ]


More information about the Java mailing list

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