From owner-freebsd-java Sun Oct 3 7:31: 1 1999 Delivered-To: freebsd-java@freebsd.org Received: from nohow.demon.co.uk (nohow.demon.co.uk [212.228.18.189]) by hub.freebsd.org (Postfix) with ESMTP id 690E1152C7 for ; Sun, 3 Oct 1999 07:30:48 -0700 (PDT) (envelope-from noway@nohow.demon.co.uk) Received: from localhost (noway@localhost) by nohow.demon.co.uk (8.9.3/8.9.3) with ESMTP id PAA00358; Sun, 3 Oct 1999 15:27:20 +0100 (BST) (envelope-from noway@nohow.demon.co.uk) Date: Sun, 3 Oct 1999 15:27:20 +0100 (BST) From: Jose Marques To: Nate Williams Cc: freebsd-java@FreeBSD.ORG Subject: Re: Announce: New release of JDK1.1.8 for FreeBSD In-Reply-To: <199910021955.NAA08219@mt.sri.com> Message-ID: X-No-Archive: yes MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, 2 Oct 1999, Nate Williams wrote: > Can you *also* try running the benchmark using the newest TYA JIT (1.5), > and see what performance changes it does. Re-running the benchmark as you requested gives the following results: JDK Average throughput (messages per second) Date without TYA 1.5 with TYA 1.5 19/7 82 150 22/9 122 149 The benchmark was run on a Libretto 70CT with 32MB of RAM (hence my use of the words "very informal" when describing the test) running FreeBSD 3.3-stable. The benchmarks were run from the console in multi-user mode but with most background processes killed. I used the command lines mentioned in the "Is it fast" section of the Volano report. -- Jose Marques To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Oct 3 13:26:15 1999 Delivered-To: freebsd-java@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id D53DC14F5E for ; Sun, 3 Oct 1999 13:26:07 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.9.3/8.9.3) with SMTP id OAA13676; Sun, 3 Oct 1999 14:26:06 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id OAA11028; Sun, 3 Oct 1999 14:26:05 -0600 Date: Sun, 3 Oct 1999 14:26:05 -0600 Message-Id: <199910032026.OAA11028@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Jose Marques Cc: Nate Williams , freebsd-java@FreeBSD.ORG Subject: Re: Announce: New release of JDK1.1.8 for FreeBSD In-Reply-To: References: <199910021955.NAA08219@mt.sri.com> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > Can you *also* try running the benchmark using the newest TYA JIT (1.5), > > and see what performance changes it does. > > Re-running the benchmark as you requested gives the following results: > > JDK Average throughput (messages per second) > Date without TYA 1.5 with TYA 1.5 > 19/7 82 150 > 22/9 122 149 > > The benchmark was run on a Libretto 70CT with 32MB of RAM (hence my use of > the words "very informal" when describing the test) running FreeBSD > 3.3-stable. The benchmarks were run from the console in multi-user mode > but with most background processes killed. I used the command lines > mentioned in the "Is it fast" section of the Volano report. Great. It appears that TYA (in this particular case) isn't nearly as helpful as it once was. This is both good and bad, in that we've gotten some significant speedups, but that there isn't a whole lot available (currently) to make it go alot faster. Thanks again! Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Oct 3 18:30:47 1999 Delivered-To: freebsd-java@freebsd.org Received: from tohokugw.tohoku.iij.ad.jp (tohokugw.tohoku.iij.ad.jp [202.232.14.98]) by hub.freebsd.org (Postfix) with ESMTP id 2BAEF14E04 for ; Sun, 3 Oct 1999 18:30:40 -0700 (PDT) (envelope-from taguchi@tohoku.iij.ad.jp) Received: by tohokugw.tohoku.iij.ad.jp; id KAA07988; Mon, 4 Oct 1999 10:30:31 +0900 (JST) Received: from unknown(192.168.144.2) by tohokugw.tohoku.iij.ad.jp via smap (V4.2) id xma007984; Mon, 4 Oct 99 10:29:43 +0900 Received: from hirose.tohoku.iij.ad.jp (localhost [127.0.0.1]) by hirose.tohoku.iij.ad.jp (8.9.3/3.7W99092011) with ESMTP id KAA00638 for ; Mon, 4 Oct 1999 10:29:42 +0900 (JST) Date: Mon, 04 Oct 1999 10:29:41 +0900 Message-ID: <14328.773.812569.72159A@hirose.tohoku.iij.ad.jp> From: taguchi@tohoku.iij.ad.jp To: freebsd-java@FreeBSD.ORG Subject: Re: Announce: New release of JDK1.1.8 for FreeBSD In-Reply-To: In your message of "Sun, 3 Oct 1999 14:26:05 -0600" <199910032026.OAA11028@mt.sri.com> References: <199910021955.NAA08219@mt.sri.com> <199910032026.OAA11028@mt.sri.com> User-Agent: Wanderlust/1.0.3 (Notorious) SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) Emacs/20.4 (i386--freebsd) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I've tested old and new JDK1.1.8 for FreeBSD and, JDK1.2 for Linux on the FreeBSD (3.3-Stable, using linux emulation). OLD 1.1.8 NEW 1.1.8 1.2(Linux Emulation) ---------------------------------------------------------------------------- Average throughput 296 358 1343 (message/second) My God ....... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Oct 4 8:52:33 1999 Delivered-To: freebsd-java@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id F0EAC14BFD for ; Mon, 4 Oct 1999 08:52:25 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.9.3/8.9.3) with SMTP id JAA22579; Mon, 4 Oct 1999 09:52:24 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id JAA14040; Mon, 4 Oct 1999 09:52:23 -0600 Date: Mon, 4 Oct 1999 09:52:23 -0600 Message-Id: <199910041552.JAA14040@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: taguchi@tohoku.iij.ad.jp Cc: freebsd-java@FreeBSD.ORG Subject: Re: Announce: New release of JDK1.1.8 for FreeBSD In-Reply-To: <14328.773.812569.72159A@hirose.tohoku.iij.ad.jp> References: <199910021955.NAA08219@mt.sri.com> <199910032026.OAA11028@mt.sri.com> <14328.773.812569.72159A@hirose.tohoku.iij.ad.jp> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I've tested old and new JDK1.1.8 for FreeBSD and, JDK1.2 for Linux > on the FreeBSD (3.3-Stable, using linux emulation). > > OLD 1.1.8 NEW 1.1.8 1.2(Linux Emulation) > ---------------------------------------------------------------------------- > Average throughput 296 358 1343 > (message/second) > > My God ....... The new Linux uses a pretty decent JIT compiler that Sun compiled for them. Unfortunately, we don't have the resources inside of Sun to have this provided for us, and the source code to the JIT is not available for porting (at least that's the impression I get from talking to the Blackdown folks). However, you might try using one of the JIT's that support FreeBSD, such as TYA and/or ShuJIT to see how much performance advantage they give. Unless we get more 'vendor' support from Sun, we are essentialy JITless. I recomend all of you who have a vested interested in seeing FreeBSD better supported contact Sun and encourage them. This is how Linux got supported, so it might also work for us.. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Oct 4 23:40:17 1999 Delivered-To: freebsd-java@freebsd.org Received: from cafe.muraoka.info.waseda.ac.jp (cafe.muraoka.info.waseda.ac.jp [133.9.68.49]) by hub.freebsd.org (Postfix) with ESMTP id AA46B15002 for ; Mon, 4 Oct 1999 23:39:47 -0700 (PDT) (envelope-from shudoh@muraoka.info.waseda.ac.jp) Received: from muraoka.info.waseda.ac.jp (shudoh@localhost [127.0.0.1]) by cafe.muraoka.info.waseda.ac.jp (8.9.1a/3.7W) with ESMTP id PAA14746 for ; Tue, 5 Oct 1999 15:35:51 +0900 Message-Id: <199910050635.PAA14746@cafe.muraoka.info.waseda.ac.jp> To: freebsd-java@FreeBSD.ORG Subject: Re: Announce: New release of JDK1.1.8 for FreeBSD In-reply-to: Your message of "Mon, 04 Oct 1999 09:52:23 CST." <199910041552.JAA14040@mt.sri.com> Date: Tue, 05 Oct 1999 15:35:50 +0900 From: SHUDO Kazuyuki Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > OLD 1.1.8 NEW 1.1.8 1.2(Linux Emulation) > > The new Linux uses a pretty decent JIT compiler that Sun compiled for > them. Blackdown JDK for Linux obtained Inprise JIT too. See http://www.borland.com/jbuilder/linux/ . > However, you might try using one of the JIT's that support FreeBSD, such > as TYA and/or ShuJIT to see how much performance advantage they give. I guess that Volano mark requires not only performance of bytecode execution, but also effective multithreading. There are works remains in the area of OS, yes it's FreeBSD. :) Kazuyuki SHUDO Happy Hacking! Muraoka Lab., Grad. School of Sci. & Eng., Waseda Univ. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Oct 5 8:33:26 1999 Delivered-To: freebsd-java@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 329EB155E9 for ; Tue, 5 Oct 1999 08:33:08 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.9.3/8.9.3) with SMTP id JAA04799; Tue, 5 Oct 1999 09:33:07 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id JAA19125; Tue, 5 Oct 1999 09:33:07 -0600 Date: Tue, 5 Oct 1999 09:33:07 -0600 Message-Id: <199910051533.JAA19125@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: SHUDO Kazuyuki Cc: freebsd-java@FreeBSD.ORG Subject: Re: Announce: New release of JDK1.1.8 for FreeBSD In-Reply-To: <199910050635.PAA14746@cafe.muraoka.info.waseda.ac.jp> References: <199910041552.JAA14040@mt.sri.com> <199910050635.PAA14746@cafe.muraoka.info.waseda.ac.jp> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I guess that Volano mark requires not only performance > of bytecode execution, but also effective multithreading. Actually, in my own benchmarks making *HEAVY* use of sockets and such, I compared the Solaris green threads implementation (not kernel threads) vs. the static executable created by TowerJ and the difference was ~25%. At the time, TowerJ on Solaris was the *fastest* VM around. > There are works remains in the area of OS, yes it's FreeBSD. :) I'm less convinced of that than you, especially in extremely I/O bound applications. If you're I/O bound and use lots of threads, then it turns out that the green threads switching is actually *faster* because it doesn't have to do complete context switching of kernel threads. And, because I/O is 'mostly' handled by select inside the green threads code, it actually works pretty well for most things... Anyway, that has been my experience. I can't compare the FreeBSD stuff, because we have nothing like TowerJ. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Oct 5 8:41:22 1999 Delivered-To: freebsd-java@freebsd.org Received: from poboxer.pobox.com (ferg5200-1-42.cpinternet.com [208.149.16.42]) by hub.freebsd.org (Postfix) with ESMTP id CBDB514D10 for ; Tue, 5 Oct 1999 08:41:00 -0700 (PDT) (envelope-from alk@poboxer.pobox.com) Received: (from alk@localhost) by poboxer.pobox.com (8.9.3/8.9.1) id KAA20169; Tue, 5 Oct 1999 10:39:28 -0500 (CDT) (envelope-from alk) From: Anthony Kimball MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 5 Oct 1999 10:39:28 -0500 (CDT) X-Face: \h9Jg:Cuivl4S*UP-)gO.6O=T]]@ncM*tn4zG);)lk#4|lqEx=*talx?.Gk,dMQU2)ptPC17cpBzm(l'M|H8BUF1&]dDCxZ.c~Wy6-j,^V1E(NtX$FpkkdnJixsJHE95JlhO 5\M3jh'YiO7KPCn0~W`Ro44_TB@&JuuqRqgPL'0/{):7rU-%.*@/>q?1&Ed Reply-To: alk@pobox.com To: nate@mt.sri.com Cc: freebsd-java@FreeBSD.ORG Subject: Re: Announce: New release of JDK1.1.8 for FreeBSD References: <199910041552.JAA14040@mt.sri.com> <199910050635.PAA14746@cafe.muraoka.info.waseda.ac.jp> <199910051533.JAA19125@mt.sri.com> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14330.7031.49582.377682@avalon.east> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Quoth Nate Williams on Tue, 5 October: : : Anyway, that has been my experience. I can't compare the FreeBSD stuff, : because we have nothing like TowerJ. : FYI, I have used Linux TowerJ (several revisions ago) to produce native FreeBSD executables will good success. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Oct 5 9:39: 3 1999 Delivered-To: freebsd-java@freebsd.org Received: from radius.wavefire.com (radius.workfire.net [139.142.95.252]) by hub.freebsd.org (Postfix) with SMTP id 3973314EC8 for ; Tue, 5 Oct 1999 09:38:54 -0700 (PDT) (envelope-from swen@wavefire.com) Received: (qmail 14156 invoked from network); 5 Oct 1999 16:38:53 -0000 Received: from swen.kabis.com (HELO swen) (139.142.95.222) by radius.workfire.net with SMTP; 5 Oct 1999 16:38:53 -0000 Message-Id: <3.0.32.19991005094017.016902b0@mail.wavefire.com> X-Sender: swen@mail.wavefire.com X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Tue, 05 Oct 1999 09:40:17 -0700 To: freebsd-java@freebsd.org From: Chameleon Subject: reloading applet Mime-Version: 1.0 Content-Type: text/enriched; charset="us-ascii" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm having a problem with a java applet, and i was wondering if neone here could help me... the applet is embeded in a page, and when the page is resized, it dies. does neone know how to force a browser to do a << or a << ?? any help would be appreciated... Swen ~ -----BEGIN GEEK CODE BLOCK----- GCS/O d-(+) s:+>:- a- C++++ UB++$>++++$ P+ L++>++++$ E-- W++(++) N+ o? K? w--- O- M-- V-- PS+ PE@ Y PGP t++ 5++ X R* tv++ b+++(+) DI++ D+++ G++ e++ h---->$ r+++ x** -----END GEEK CODE BLOCK----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Oct 5 13:22:17 1999 Delivered-To: freebsd-java@freebsd.org Received: from po6.andrew.cmu.edu (PO6.ANDREW.CMU.EDU [128.2.10.106]) by hub.freebsd.org (Postfix) with ESMTP id 81DBD14E1F for ; Tue, 5 Oct 1999 13:22:12 -0700 (PDT) (envelope-from donnah+@andrew.cmu.edu) Received: (from postman@localhost) by po6.andrew.cmu.edu (8.9.3/8.9.3) id QAA10225 for freebsd-java@freebsd.org; Tue, 5 Oct 1999 16:21:03 -0400 (EDT) Received: via switchmail; Tue, 5 Oct 1999 16:21:02 -0400 (EDT) Received: from pcs6.andrew.cmu.edu via qmail ID ; Tue, 5 Oct 1999 16:19:50 -0400 (EDT) Received: from pcs6.andrew.cmu.edu via qmail ID ; Tue, 5 Oct 1999 16:19:50 -0400 (EDT) Received: from mms.4.60.Jun.27.1996.03.02.53.sun4.51.EzMail.PC.3.2.CUILIB.3.45.SNAP.NOT.LINKED.pcs6.andrew.cmu.edu.sun4m.54 via MS.5.6.pcs6.andrew.cmu.edu.sun4_51; Tue, 5 Oct 1999 16:19:50 -0400 (EDT) Message-ID: Date: Tue, 5 Oct 1999 16:19:50 -0400 (EDT) From: Donna Hoffmeister To: freebsd-java@freebsd.org Subject: coding help Cc: Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Could someone give me some help writing the java code for a calculator that works from client to server? Please respond by email donnah+@andrew.cmu.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Oct 5 13:41: 5 1999 Delivered-To: freebsd-java@freebsd.org Received: from csmd2.cs.uni-magdeburg.de (csmd2.CS.Uni-Magdeburg.De [141.44.22.2]) by hub.freebsd.org (Postfix) with ESMTP id D993715648 for ; Tue, 5 Oct 1999 13:40:29 -0700 (PDT) (envelope-from jesse@mail.CS.Uni-Magdeburg.De) Received: from loriot.cs.uni-magdeburg.de (loriot [141.44.21.70]) by csmd2.cs.uni-magdeburg.de (8.9.1a/8.9.1) with ESMTP id WAA28152; Tue, 5 Oct 1999 22:38:12 +0200 (MET DST) Received: (from jesse@localhost) by loriot.cs.uni-magdeburg.de (8.8.7/8.8.8) id UAA20118; Tue, 5 Oct 1999 20:38:07 GMT Date: Tue, 5 Oct 1999 22:38:07 +0200 From: Roland Jesse To: Donna Hoffmeister Cc: freebsd-java@FreeBSD.ORG Subject: Re: coding help Message-ID: <19991005223807.A20408@loriot.cs.uni-magdeburg.de> Mail-Followup-To: Donna Hoffmeister , freebsd-java@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Donna Hoffmeister wrote: > Could someone give me some help writing the java code for a calculator > that works from client to server? Nope. Homework is to be done by the students themselfs. Life's hard. :) Roland To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Oct 5 15:26:42 1999 Delivered-To: freebsd-java@freebsd.org Received: from mail.hurontel.on.ca (mail.hurontel.on.ca [216.46.129.11]) by hub.freebsd.org (Postfix) with ESMTP id D2416156AB for ; Tue, 5 Oct 1999 15:26:16 -0700 (PDT) (envelope-from kevin.v@BinaryDesign.on.ca) Received: from BinaryDesign.on.ca (dial-225.hurontel.on.ca [216.46.128.225]) by mail.hurontel.on.ca (8.9.3/8.9.3) with ESMTP id SAA04722; Tue, 5 Oct 1999 18:25:30 -0400 (EDT) Message-ID: <37FA7A85.B03D7166@BinaryDesign.on.ca> Date: Tue, 05 Oct 1999 18:24:05 -0400 From: Kevin Venkiteswaran X-Mailer: Mozilla 4.6 [en] (X11; I; FreeBSD 3.1-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-java@freebsd.org Cc: Chameleon Subject: Re: reloading applet References: <3.0.32.19991005094017.016902b0@mail.wavefire.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I'm having a problem with a java applet, and i was wondering if neone here could help me... > the applet is embeded in a page, and when the page is resized, it dies. > does neone know how to force a browser to do a or a ?? In most browsers, when the window is resized it calls stop() on all applets, then start() again. make sure any code that is in those methods can be called multiple times (at unexepected times) and still work. good luck, kevin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Oct 6 20:30:51 1999 Delivered-To: freebsd-java@freebsd.org Received: from isis.uniandes.edu.co (isis.uniandes.edu.co [157.253.54.5]) by hub.freebsd.org (Postfix) with ESMTP id 66EFD15006 for ; Wed, 6 Oct 1999 20:30:41 -0700 (PDT) (envelope-from ser-garc@uniandes.edu.co) Received: from isis (isis [157.253.54.5]) by isis.uniandes.edu.co (8.9.3/8.9.3) with SMTP id WAA21711 for ; Wed, 6 Oct 1999 22:28:35 -0500 (GMT+5) Date: Wed, 6 Oct 1999 22:28:35 -0500 (GMT+5) From: SeRgIo ArTuRo GaRcIa X-Sender: ser-garc@isis To: freebsd-java@freebsd.org Subject: JNI Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Im trying to run the example in Java tutorial about JNI, but im getting the message "unsupported file type (libNativeDemo.so)" when I run the java program that runs a native method. Im creating libNativeDemo.so with this line gcc -I/usr/local/bin/jdk1.1.8/include/ \ -I/usr/local/bin/jdk1.1.8/include/freebsd -c \ -fPIC -DPIC NativeDemo.c -o libNativeDemo.so any ideas? thanks in advance, Sergio To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Oct 6 21:54:35 1999 Delivered-To: freebsd-java@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 0A4D614DEB for ; Wed, 6 Oct 1999 21:54:27 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.9.3/8.9.3) with SMTP id WAA24065; Wed, 6 Oct 1999 22:54:26 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id WAA27766; Wed, 6 Oct 1999 22:54:25 -0600 Date: Wed, 6 Oct 1999 22:54:25 -0600 Message-Id: <199910070454.WAA27766@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: SeRgIo ArTuRo GaRcIa Cc: freebsd-java@FreeBSD.ORG Subject: Re: JNI In-Reply-To: References: X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Im trying to run the example in Java tutorial about JNI, but im getting > the message "unsupported file type (libNativeDemo.so)" when I run the java > program that runs a native method. Which version of the JDK are you running, and which version of FreeBSD are you running? The JDK's binary format must match the format of the OS. (FreeBSD 2.2.* must use A.OUT, and FreeBSD 3.2 or greater must use the ELF version). Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Oct 6 23: 2:10 1999 Delivered-To: freebsd-java@freebsd.org Received: from kitsune.swcp.com (swcp.com [198.59.115.2]) by hub.freebsd.org (Postfix) with ESMTP id 866C014F01 for ; Wed, 6 Oct 1999 23:02:07 -0700 (PDT) (envelope-from msommer@argotsoft.com) Received: from argotsoft.com (argotsoft.com [198.59.115.127]) by kitsune.swcp.com (8.8.8/1.2.3) with ESMTP id AAA29624 for ; Thu, 7 Oct 1999 00:00:58 -0600 (MDT) Received: from rincon (rincon.argotsoft.com [192.168.3.102]) by argotsoft.com (8.9.3/8.8.7) with SMTP id XAA17335 for ; Wed, 6 Oct 1999 23:59:26 -0600 (MDT) (envelope-from msommer@argotsoft.com) Message-Id: <3.0.3.32.19991006235923.009ca830@mail> X-Sender: msommer@mail X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.3 (32) Date: Wed, 06 Oct 1999 23:59:23 -0600 To: freebsd-java@freebsd.org From: "Mark J. Sommer" Subject: Re: JNI In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Try: gcc -I/usr/local/bin/jdk1.1.8/include -I/usr/local/bin/jdk1.1.8/include/freebsd -Wall -pipe -shared -c ... Think you're missing the -shared. JNI works fine for me on FreeBSD. At 10:28 PM 10/6/99 -0500, you wrote: >Im trying to run the example in Java tutorial about JNI, but im getting >the message "unsupported file type (libNativeDemo.so)" when I run the java >program that runs a native method. > >Im creating libNativeDemo.so with this line > > gcc -I/usr/local/bin/jdk1.1.8/include/ \ >-I/usr/local/bin/jdk1.1.8/include/freebsd -c \ >-fPIC -DPIC NativeDemo.c -o libNativeDemo.so > >any ideas? > >thanks in advance, >Sergio > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-java" in the body of the message > > ~Mark -------------------------------------------------------------------------------- Mark J. Sommer ARGOT Software Corporation, P.O. Box 92020, Albuquerque, New Mexico 87199-2020 FAX: 505-771-0274 PHONE: 505-867-6750 E-MAIL: msommer@argotsoft.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Oct 7 8:48:41 1999 Delivered-To: freebsd-java@freebsd.org Received: from apollo.sfsu.edu (apollo.sfsu.edu [130.212.10.167]) by hub.freebsd.org (Postfix) with ESMTP id E5E12150B9 for ; Thu, 7 Oct 1999 08:48:34 -0700 (PDT) (envelope-from arashfar@sfsu.edu) Received: from localhost (arashfar@localhost) by apollo.sfsu.edu (8.8.7/8.8.7) with SMTP id IAA09210 for ; Thu, 7 Oct 1999 08:45:27 -0700 (PDT) Date: Thu, 7 Oct 1999 08:45:27 -0700 (PDT) From: ARASH FARAHMAND To: freebsd-java@freebsd.org Subject: time measurement in Java Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dear all, I would greatly appreciate if you would please give me your advice on which method is better to measure time in Java, or guide me on where to look for it. In particular, it would be great it can measure time in units less than milliseconds. Thanks in advance, Arash To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Oct 7 9:16:28 1999 Delivered-To: freebsd-java@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 0DB0114F39 for ; Thu, 7 Oct 1999 09:16:23 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.9.3/8.9.3) with SMTP id KAA00275; Thu, 7 Oct 1999 10:14:57 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id KAA00139; Thu, 7 Oct 1999 10:14:56 -0600 Date: Thu, 7 Oct 1999 10:14:56 -0600 Message-Id: <199910071614.KAA00139@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: ARASH FARAHMAND Cc: freebsd-java@FreeBSD.ORG Subject: Re: time measurement in Java In-Reply-To: References: X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I would greatly appreciate if you would please give me your advice on > which method is better to measure time in Java, or guide me on where to > look for it. In particular, it would be great it can measure time in > units less than milliseconds. System.currentTimeMillis() and Calendar (don't remember where,maybe java.util). java.util.Date is always a good start. Any beginning Java book would have this kind of information, I recommend you get one. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Oct 7 17: 0:49 1999 Delivered-To: freebsd-java@freebsd.org Received: from bubba.whistle.com (bubba.whistle.com [207.76.205.7]) by hub.freebsd.org (Postfix) with ESMTP id 4DB1D14E01 for ; Thu, 7 Oct 1999 17:00:44 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.2/8.9.2) id QAA88501; Thu, 7 Oct 1999 16:57:41 -0700 (PDT) From: Archie Cobbs Message-Id: <199910072357.QAA88501@bubba.whistle.com> Subject: Re: time measurement in Java In-Reply-To: <199910071614.KAA00139@mt.sri.com> from Nate Williams at "Oct 7, 1999 10:14:56 am" To: arashfar@sfsu.edu Date: Thu, 7 Oct 1999 16:57:41 -0700 (PDT) Cc: freebsd-java@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (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 Nate Williams writes: > > I would greatly appreciate if you would please give me your advice on > > which method is better to measure time in Java, or guide me on where to > > look for it. In particular, it would be great it can measure time in > > units less than milliseconds. > > System.currentTimeMillis() and Calendar (don't remember where,maybe > java.util). java.util.Date is always a good start. System.currentTimeMillis() returns time in milliseconds (obviously). I don't think there's any point in measuring time any more precisely, because of the slowness and variances in the execution of Java itself. More precision would be 'false precision' I think.. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Oct 7 19:41: 2 1999 Delivered-To: freebsd-java@freebsd.org Received: from mta1.rcsntx.swbell.net (mta1.rcsntx.swbell.net [151.164.30.25]) by hub.freebsd.org (Postfix) with ESMTP id 4164514F94 for ; Thu, 7 Oct 1999 19:41:00 -0700 (PDT) (envelope-from chris@tourneyland.com) Received: from momma ([216.62.177.1]) by mta1.rcsntx.swbell.net (Sun Internet Mail Server sims.3.5.1999.09.16.21.57.p8) with SMTP id <0FJ900HW8JG9EA@mta1.rcsntx.swbell.net> for freebsd-java@freebsd.org; Thu, 7 Oct 1999 21:40:57 -0500 (CDT) Date: Thu, 07 Oct 1999 21:39:13 -0500 From: chris@tourneyland.com Subject: Re: time measurement in Java In-reply-to: <199910072357.QAA88501@bubba.whistle.com> X-Sender: pop992333@mail.9netave.net To: freebsd-java@freebsd.org Message-id: <3.0.6.32.19991007213913.00857ec0@mail.9netave.net> MIME-version: 1.0 X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Content-type: text/plain; charset="us-ascii" References: <199910071614.KAA00139@mt.sri.com> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >System.currentTimeMillis() returns time in milliseconds (obviously). >I don't think there's any point in measuring time any more precisely, >because of the slowness and variances in the execution of Java itself. >More precision would be 'false precision' I think.. This is perpetuating a common misconception of Java, that Java is in some way 'limited'. Java is only as limited as its implementations - and in fact, it's not even that limited, since there's always the possibility of native code. So here's a better (or at least more complete) answer - the JDK itself offers no methods for getting more precise time than milliseconds, but there maybe be a native code library or two that allow you to do better on FreeBSD. If there are not, it's not to hard to write your own. Good luck, Chris > >-Archie > >___________________________________________________________________________ >Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-java" in the body of the message > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message