Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jul 2000 15:45:14 +0930 (CST)
From:      Greg Lewis <glewis@trc.adelaide.edu.au>
To:        David Holland <dholland@xmission.com>
Cc:        freebsd-java@FreeBSD.ORG
Subject:   Re: Question on JDK1.2.2 FAQ #5 {JBuilder and JPDA}
Message-ID:  <200007120615.PAA27716@ares.trc.adelaide.edu.au>
In-Reply-To: <396C0AC1.F0FD39CA@xmission.com> from David Holland at "Jul 12, 2000 00:05:53 am"

next in thread | previous in thread | raw e-mail | index | archive | help
David Holland wrote:
> In trying to get JPDA to work with JBuilder using the
> native JDK1.2.2 (P9), I copied the jpda.jar and dt.jar files from the
> linux_jdk1.2.2/lib directory into the
> jdk1.2.2/lib directory.
> 
> But when I tried to use it, i.e.
> 
> java -Xdebug -Xnoagent -Djava.compiler=NONE 
>    -Xrunjdwp:transport=dt_socket,address=9123,suspend=n
>      HelloWorld
> 
> I get:
> 
> Can't load "libjdwp.so", because Shared object "libjdwp.so" not found
> Could not create the Java virtual machine.
> 
> Ok, so I copied libjdwp.so from the linux-jdk1.2.2 directory as well.

That won't work -- the FreeBSD native JDK can't use Linux shared libraries.
The information in the FAQ for this particular question was only put there
based on what folk on freebsd-java had said worked for them, I haven't 
actually tried to use JBuilder myself :(.

> Going for brute force now, I manually copied each linux lib asked for
> into jdk1.2.2/jre/lib/i386/ directory until I got to ld-linux.so.2 at
> which point the above gives me
> a bus error...

See above.  You might try creating some "blank" shared libraries and giving
them the appropriate names -- this may or may not work depending on how
much the native libraries are used.

Maybe the other folk who are actually using JBuilder have some better
suggestions?

> PS. To my suprise, JBuilder will run with the linux_jdk
> and linux javacomp jit {but it is slower than the native
> jdk with no jit}.  And while I can run HelloWorld from
> the prompt as above with linux-jdk, I can't do it in JBuilder yet
> perhaps because it is using address=asimov.solaria.org:9123 and
> asimov.solaria.org isn't in my local dns yet.

It shouldn't surprise you that you can run things using the Linux JDK
under emulation.  The speed difference is a bit surprising though.

> PS2: Enhydra4 Enterprise seems to work great with native
> jdk1.2.2 so far.

Cool!

-- 
Greg Lewis 				glewis@trc.adelaide.edu.au
Computing Officer			+61 8 8303 5083
Teletraffic Research Centre


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007120615.PAA27716>