trouble installing jdk1.2
Hi, I'm new to Linux. I've installed jdk1.2 from blackdown using bz2,tar and specified all the lib*.so file paths(such as JAVA_HOME/jre/lib/i386/) in the LD_LIBRARY_PATH.still when i run java (or other programs like javac, appletviewer etc.,), i'm getting an error message saying error loading shared library libjvm.so. undefined symbol __bzero. pls. help. Thanx in advance. balaji -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: trouble installing jdk1.2
> Von: Balaji Sundararajan <[EMAIL PROTECTED]> > An: [EMAIL PROTECTED] > Betreff: trouble installing jdk1.2 > Datum: Freitag, 17. Juli 1998 10:14 > > Hi, > > I'm new to Linux. I've installed jdk1.2 from blackdown using bz2,tar > and specified > all the lib*.so file paths(such as JAVA_HOME/jre/lib/i386/) in the > LD_LIBRARY_PATH.still when i run java (or other programs like javac, > appletviewer etc.,), i'm getting an error message saying > >error loading shared library libjvm.so. undefined symbol > __bzero. > You must download the version for glibc 2.0 I had the same problem with me SUSE 6.1 and java-glibc2.1 wbr Robert Valentan LSS Leo Schleupen Systemanalyse GmbH Hetmanekg 1b, A-1230 Wien Tel: ++43/1/6998400 Fax: ++43/1/6998411 Mail: [EMAIL PROTECTED] WWW: http://www.lss.co.at -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JIT instability w.r.t. bad code?
Nick Lawson wrote:
>
> I'm pretty sure try{}catch{} catch blocks add NO overhead to code,
> unless the exception actually gets thrown. But exceptions are
> supposed to be
> exceptional, so who cares how slow it is ?
>
> Check out how exception handling is implemented in Java byte-code
> in the Java Virtual Machine Specification, 4.7.3 - The Code
> Attribute.
Times for attached program (JDK1.2pre2, glibc2.1, RH6, 200MHZ PPro,
5 iterations):
No JIT sunwjit tya
-- --- ---
With try/catch 278793 17925 33894
Without 237905 15364 35803
%slower 17.2% 16.7% -5.3%
I'd be surprised to see a zero-overhead try/catch, although tya seems to
be on to something :-).
Results are unaffected by -O compilation.
Nathan
import java.util.*;
public class Hello
{
public static void main(String[] argv) throws Exception
{
int count = Integer.parseInt(argv[0]);
Date date1 = new Date();
boolean foobar = false;
for (int i = 0; i < count;)
{
try
{
i++;
if (foobar) throw new Exception();
// Try to make optimization-resistant :-)
foobar = foobar && true;
}
catch (Exception e) { }
}
Date date2 = new Date();
Date date3 = new Date();
for (int i = 0; i < count;)
{
i++;
if (foobar) throw new Exception();
// Try to make optimization-resistant :-)
foobar = foobar && true;
}
Date date4 = new Date();
System.out.println("First loop (try): " +
(date2.getTime() - date1.getTime()));
System.out.println("Second loop (no try): " +
(date4.getTime() - date3.getTime()));
}
}
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: final variables in constructors (OT)
Ok, if declared as final and static, variables behave just like constants and can be used in constructors. I don't know how it happened the first time that it didn't work, but after another test it's confirmed, they work. With an afterthough, it would have been a big mistake in the java language or the java compiler if this behaviour was not implemented. I guess those who wrote Java couldn't do such a mistake :) Many thanks to everybody for the detailed answers, even if this was an OT subject. --- Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at University of Pisa - Italy - E-mail: [EMAIL PROTECTED] My home page: http://www.cli.di.unipi.it/~controzz/intro.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How to help???
Robert Perry wrote: > > I have virtually no time, but would like to know how to help the > Blackdown team. I'm not sure that I could help. I just started looking > on the web paged expecting a todo list or something. Not seeing a "How > to Help" page I though someone in this list could get me started. Probably the most useful thing is to test Java 2 to destruction. Test in as many ways you can in as many combinations on as many platforms and system configurations. As far as I understand it, the current situation is basically that Java 2 now passes the compatibility tests using green threads and no JIT compiler, but that there are bugs in the JIT and some other bugs regarding that and/or native threads where they haven't yet found a pattern in what succeeds and what fails. On this subject, if anyone's interested in my latest experiences with the live JSP website I've deployed using Java 2 (not to be recommended I know, but I needed some Java 2 features and it was that or NT), I've now tried all the combinations. To recap: System is SuSE 6.0 with kernel 2.2.9 SMP (+DoS patch), dual Pentium II/350MHz blah (more details if requested) Green threads, no JIT, all fine. Green threads, with JIT, JVM crashes on initialisation. Native threads, with JIT, all works well for a while (and FAST), but then crashed after a few days. Native threads, no JIT, the one combination I didn't get a chance to try before: all seems fine so far. I set it going on this combination earlier this week, and it's survived the condition that seemed to kill native+JIT twice now. -- Rachel -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: -Xrunhprof:cpu=times gives a segfault.
> Hello, > if I run java -Xrunhprof:cpu=times I get a segfault, same if I use > cpu=old, anything works perfectly with cpu=samples. > > I have JDK1.2 on a SuSE 6.1. It's my system or this happens to everybody? Mine segfaults as well. I run Slackware and jdk1.2pre-v2 (glibc2.0) and everything else works fine. -- Calin Medianu - Systems Administrator NetNation Communications Inc. Now Hiring: http://www.netnation.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
