From owner-freebsd-java Tue Jul 11 23:15:29 2000 Delivered-To: freebsd-java@freebsd.org Received: from ares.trc.adelaide.edu.au (ares.trc.adelaide.edu.au [129.127.246.5]) by hub.freebsd.org (Postfix) with ESMTP id D32EF37BCF7 for ; Tue, 11 Jul 2000 23:15:21 -0700 (PDT) (envelope-from glewis@ares.trc.adelaide.edu.au) Received: (from glewis@localhost) by ares.trc.adelaide.edu.au (8.9.3/8.9.3) id PAA27716; Wed, 12 Jul 2000 15:45:14 +0930 (CST) (envelope-from glewis) From: Greg Lewis Message-Id: <200007120615.PAA27716@ares.trc.adelaide.edu.au> Subject: Re: Question on JDK1.2.2 FAQ #5 {JBuilder and JPDA} In-Reply-To: <396C0AC1.F0FD39CA@xmission.com> from David Holland at "Jul 12, 2000 00:05:53 am" To: David Holland Date: Wed, 12 Jul 2000 15:45:14 +0930 (CST) Cc: freebsd-java@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL70 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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