Newbie question...
Simon Gornall
simon@unique-id.com
Tue May 25 08:05:00 GMT 1999
I'm not sure if this is where I'm supposed to ask this - if
I'm in the wrong area, it'd be nice if someone would tell me
(nicely :-) where to go...
Could anyone shed any light on whether it's possible to get a
threaded java program compiled under Linux as a native
executable ?
I've searched the online stuff, but it's quite confusing as to
where I should specify which options to 'configure' (for egcs
or for libgcj for threads/garbage collection etc.)
In fact, if anyone has a "this'll work" set of configure lines
(one for egcs, one for libgcj) I'd really appreciate being told
them :-)
I configured egcs with
configure --prefix=/opt/egcs
--with-local-prefix=/opt/egcs
--with-gxx-include-dir=/opt/egcs/include/g++
--enable-shared
--enable-threads
--enable-languages=c++,f77,java,objc
... and libgcj with
configure --prefix=/opt/egcs
--enable-threads=posix
--enable-fast-character
Anyone have any ideas ?
This is all on Redhat Linux, running kernel 2.2.0, libc6 etc.
Basically the problem appears to be that the code:
try
{
Thread.sleep(10000);
}
catch (Exception e)
{
System.err.println("Exception : " +e);
}
... just falls straight through the Thread.sleep() call...
ATB,
Simon.
--
Catapultam habeo!
Nisi pecuniam omnem mihi dabis, ad caput tuum saxum immane mittam !!
(official company policy :-)
S/MIME Cryptographic Signature
More information about the Java
mailing list