From owner-freebsd-java Sun Jan 10 04:22:22 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA14945 for freebsd-java-outgoing; Sun, 10 Jan 1999 04:22:22 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from jiyu.net ([209.100.98.61]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA14939 for ; Sun, 10 Jan 1999 04:22:21 -0800 (PST) (envelope-from daichi@ongs.net) Received: from localhost (ppph038.wbs.ne.jp [202.219.55.38]) by jiyu.net (8.8.5/8.8.5) with ESMTP id VAA31528 for ; Sun, 10 Jan 1999 21:14:51 +0900 To: freebsd-java@FreeBSD.ORG Subject: Re: About Japanese problem with Swing. In-Reply-To: <199812301642.JAA04998@mt.sri.com> References: <19981230185745U.daichi@ongs.net> <199812301642.JAA04998@mt.sri.com> X-Mailer: Mew version 1.94b1 on XEmacs 20.4 (Emerald) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19990110211159X.daichi@ongs.net> Date: Sun, 10 Jan 1999 21:11:59 +0900 From: "Daichi T.GOTO" X-Dispatcher: imput version 981019(IM102) Lines: 53 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >From Daichi. From: Nate Williams Subject: Re: About Japanese problem with Swing. Date: Wed, 30 Dec 1998 09:42:11 -0700 > > Now I am useing Swing 1.1 with jdk1.1.7 on FreeBSD 3.0 Release. > > This is very good. I can use Japanese Charactors(EUC) as labels, but > > cannot use it in JTextArea and JEditorPane. Why? Is this an especialy > > problem of FreeBSD or original bug of Swing? > > I'm not sure. The only way to know is to try it on the reference > platform (Solaris) and see if it works there. It's possible that it's a > FreeBSD specific bug, but I doubt it. We (freebsd-users-jp mailing list menbers) found the cause of this problem. JDK1.1.7 does mistakes to get the locale informations. For example, ----------------------- the environment values: LANG=ja_JP.EUC LC_MESSAGES=ja_JP.EUC LC_ALL=ja_JP.EUC ----------------------- the source code: import java.io.*; class envalue { public static void main(String[] argv) { System.out.println(System.getProperties()); } } ----------------------- the result: {user.language=ja, java.home=/usr/local/old_jdk1.1.7, java.vendor.url.bug=mailto:java-port@FreeBSD.org, file.encoding.pkg=sun.io, java.version=1.1.7, file.separator=/, line.separator= , user.region=JP, file.encoding=8859_1, java.vendor=Sun Microsystems Inc., port by java-port@FreeBSD.org, user.timezone=JST, user.name=daichi, os.arch=x86, os.name=FreeBSD, java.vendor.url=http://www.freebsd.org/java/, user.dir=/usr/home/daichi/Develope/Java/develop/EnvironemtValue, java.class.path=.:/usr/local/java/lib/classes.zip:/usr/local/swing-1.1:/usr/local/swing-1.1/swingall.jar:/usr/local/old_jdk1.1.7/classes:/usr/local/old_jdk1.1.7/lib/classes.jar:/usr/local/old_jdk1.1.7/lib/rt.jar:/usr/local/old_jdk1.1.7/lib/i18n.jar:/usr/local/old_jdk1.1.7/lib/classes.zip, java.class.version=45.3, os.version=3.0-CURRENT, path.separator=:, user.home=/home/daichi} ----------------------- The information "file.encoding=8859_1" is bad. That should be "file.encoding=EUC_JP". Is this the espacially problem of FreeBSD JDK1.1.7, or original JDK1.1.7 bug? A Solaris user reported that he uses JDK1.1.7 on Solaris2.x but could not find the same problem. JDK 1.1.6 does good. And the early released JDK 1.1.7 does good. Uhhmm. Can I solve this problem... ? ---- Daichi T.GOTO (ONGS) http://www.ongs.net/daichi, daichi@ongs.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Sun Jan 10 20:59:59 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA02904 for freebsd-java-outgoing; Sun, 10 Jan 1999 20:59:59 -0800 (PST) (envelope-from owner-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 (8.8.8/8.8.8) with ESMTP id UAA02898 for ; Sun, 10 Jan 1999 20:59:57 -0800 (PST) (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 NAA28695; Mon, 11 Jan 1999 13:59:07 +0900 Message-Id: <199901110459.NAA28695@cafe.muraoka.info.waseda.ac.jp> To: "Daichi T.GOTO" Cc: freebsd-java@FreeBSD.ORG Subject: Re: About Japanese problem with Swing. In-reply-to: Your message of "Sun, 10 Jan 1999 21:11:59 JST." <19990110211159X.daichi@ongs.net> Date: Mon, 11 Jan 1999 13:59:07 +0900 From: SHUDO Kazuyuki Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Daichi T.GOTO wrote: > JDK1.1.7 does mistakes to get the locale informations. For example, > the environment values: > LANG=ja_JP.EUC > the result: > file.encoding=8859_1 > The information "file.encoding=8859_1" is bad. > That should be "file.encoding=EUC_JP". I think so. A default value of property `file.encoding' should follow locale of the system. > Is this the espacially problem of FreeBSD > JDK1.1.7, or original JDK1.1.7 bug? This is surely a problem and I can make a patch. JDK 1.1.7 can recognize only `ja', `japanese' and `PCK' as encoding for Japanese. I can't be sure which, Sun or porting team, should deal with the problem. More people will be happy if Sun deal with. But Sun may claim that current implementation is sufficient, because current JDK supports `ja' and `japanese' which is values of LANG for SunOS 5. Who should deal with this problem? Kazuyuki SHUDO Happy Hacking! Muraoka Lab., Grad. School of Sci. & Eng., Waseda Univ. E-mail: shudoh@muraoka.info.waseda.ac.jp Address: Muraoka Lab., Waseda Univ., 3-4-1 Okubo Shinjuku-ku Tokyo 169-8555 JAPAN TEL: +81-3-3209-5198 FAX: +81-3-3209-5198 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Jan 11 06:40:47 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA10281 for freebsd-java-outgoing; Mon, 11 Jan 1999 06:40:47 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from jiyu.net ([209.100.98.61]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA10276 for ; Mon, 11 Jan 1999 06:40:44 -0800 (PST) (envelope-from daichi@ongs.net) Received: from localhost (ppph091.wbs.ne.jp [202.219.55.91]) by jiyu.net (8.8.5/8.8.5) with ESMTP id XAA16710 for ; Mon, 11 Jan 1999 23:43:59 +0900 To: freebsd-java@FreeBSD.ORG Subject: Re: About Japanese problem with Swing. In-Reply-To: <199901110459.NAA28695@cafe.muraoka.info.waseda.ac.jp> References: <199901110459.NAA28695@cafe.muraoka.info.waseda.ac.jp> X-Mailer: Mew version 1.94b1 on XEmacs 20.4 (Emerald) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19981231233944V.daichi@ongs.net> Date: Thu, 31 Dec 1998 23:39:44 +0900 From: "Daichi T.GOTO" X-Dispatcher: imput version 981019(IM102) Lines: 40 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Daichi. From: SHUDO Kazuyuki Subject: Re: About Japanese problem with Swing. Date: Mon, 11 Jan 1999 13:59:07 +0900 > > Is this the espacially problem of FreeBSD > > JDK1.1.7, or original JDK1.1.7 bug? > > This is surely a problem and I can make a patch. Oh, great!!! > JDK 1.1.7 can recognize only `ja', `japanese' and `PCK' > as encoding for Japanese. > > I can't be sure which, Sun or porting team, should deal > with the problem. More people will be happy if Sun deal > with. But Sun may claim that current implementation is > sufficient, because current JDK supports `ja' and > `japanese' which is values of LANG for SunOS 5. Uhhmmm. What do porting team menbers think about this? > Who should deal with this problem? Maybe the best is working of Sun. But the realistic solution is dealing with it by powerful porting team. # Appendix: # Now, I am studing English very hard. So, if I have mistakes, then # notice to me, please. I really think that English is the # world. That's great. ---- Daichi T.GOTO (ONGS) http://www.ongs.net/daichi, daichi@ongs.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Jan 11 10:18:37 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA06969 for freebsd-java-outgoing; Mon, 11 Jan 1999 10:18:37 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA06964 for ; Mon, 11 Jan 1999 10:18:35 -0800 (PST) (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.8.8/8.8.8) with SMTP id LAA12771; Mon, 11 Jan 1999 11:18:02 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id LAA16580; Mon, 11 Jan 1999 11:18:01 -0700 Date: Mon, 11 Jan 1999 11:18:01 -0700 Message-Id: <199901111818.LAA16580@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "Daichi T.GOTO" Cc: freebsd-java@FreeBSD.ORG Subject: Re: About Japanese problem with Swing. In-Reply-To: <19981231233944V.daichi@ongs.net> References: <199901110459.NAA28695@cafe.muraoka.info.waseda.ac.jp> <19981231233944V.daichi@ongs.net> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > JDK 1.1.7 can recognize only `ja', `japanese' and `PCK' > > as encoding for Japanese. > > > > I can't be sure which, Sun or porting team, should deal > > with the problem. More people will be happy if Sun deal > > with. But Sun may claim that current implementation is > > sufficient, because current JDK supports `ja' and > > `japanese' which is values of LANG for SunOS 5. > > Uhhmmm. What do porting team menbers think about this? Personally, I don't care a whole lot. Note, I don't *plan* on making anymore JDK1.1 releases as I'd like to focus my efforts on JDK1.2. However, if there are *significant* bugs in JDK1.1 (feel free to convince me) in the FreeBSD portions of the JDK and/or Sun releases a new JDK1.1 release *and/or* someone submits working ELF patches for a JDK1.1 port, make a new release. > > Who should deal with this problem? > > Maybe the best is working of Sun. But the realistic solution is dealing > with it by powerful porting team. The porting team has no 'power' per-se. We just make a port, and have no relationship with Sun. :( Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Jan 11 21:39:03 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA29000 for freebsd-java-outgoing; Mon, 11 Jan 1999 21:39:03 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from quackerjack.cc.vt.edu (quackerjack.cc.vt.edu [198.82.160.250]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA28995 for ; Mon, 11 Jan 1999 21:39:02 -0800 (PST) (envelope-from rschutt@vt.edu) Received: from sable.cc.vt.edu (sable.cc.vt.edu [128.173.16.30]) by quackerjack.cc.vt.edu (8.8.8/8.8.8) with ESMTP id AAA02644 for ; Tue, 12 Jan 1999 00:38:28 -0500 (EST) Received: from ryan (as5200-5.sl026.cns.vt.edu [128.173.38.37]) by sable.cc.vt.edu (8.8.8/8.8.8) with SMTP id AAA31599 for ; Tue, 12 Jan 1999 00:38:26 -0500 (EST) Message-ID: <003a01be3ded$9e125e60$0200a8c0@ryan> From: "Ryan Schutt" To: Subject: java 1.2? Date: Tue, 12 Jan 1999 00:37:16 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Any chance of a java 1.2 port soon? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Jan 11 22:22:03 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA02922 for freebsd-java-outgoing; Mon, 11 Jan 1999 22:22:03 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from picnic.mat.net (picnic.mat.net [206.246.122.117]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA02896 for ; Mon, 11 Jan 1999 22:22:00 -0800 (PST) (envelope-from chuckr@mat.net) Received: from localhost (chuckr@localhost) by picnic.mat.net (8.9.1/8.8.5) with ESMTP id BAA37092; Tue, 12 Jan 1999 01:19:43 -0500 (EST) Date: Tue, 12 Jan 1999 01:19:43 -0500 (EST) From: Chuck Robey To: Ryan Schutt cc: java@FreeBSD.ORG Subject: Re: java 1.2? In-Reply-To: <003a01be3ded$9e125e60$0200a8c0@ryan> 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 On Tue, 12 Jan 1999, Ryan Schutt wrote: > Any chance of a java 1.2 port soon? Several folks have the code and are working on it. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message > > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@glue.umd.edu | communications topic, C programming, and Unix. 213 Lakeside Drive Apt T-1 | Greenbelt, MD 20770 | I run Journey2 and picnic (FreeBSD-current) (301) 220-2114 | and jaunt (NetBSD). ----------------------------+----------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Jan 12 04:46:50 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA14406 for freebsd-java-outgoing; Tue, 12 Jan 1999 04:46:50 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from jiyu.net ([209.100.98.61]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA14401 for ; Tue, 12 Jan 1999 04:46:48 -0800 (PST) (envelope-from daichi@ongs.net) Received: from localhost (ppph010.wbs.ne.jp [202.219.55.10]) by jiyu.net (8.8.5/8.8.5) with ESMTP id VAA06877 for ; Tue, 12 Jan 1999 21:50:02 +0900 To: freebsd-java@FreeBSD.ORG Subject: Re: About Japanese problem with Swing. In-Reply-To: <199901111818.LAA16580@mt.sri.com> References: <199901110459.NAA28695@cafe.muraoka.info.waseda.ac.jp> <19981231233944V.daichi@ongs.net> <199901111818.LAA16580@mt.sri.com> X-Mailer: Mew version 1.94b1 on XEmacs 20.4 (Emerald) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19990112214638K.daichi@ongs.net> Date: Tue, 12 Jan 1999 21:46:38 +0900 From: "Daichi T.GOTO" X-Dispatcher: imput version 981019(IM102) Lines: 40 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Daichi. From: Nate Williams Subject: Re: About Japanese problem with Swing. Date: Mon, 11 Jan 1999 11:18:01 -0700 > > Uhhmmm. What do porting team menbers think about this? > > Personally, I don't care a whole lot. Note, I don't *plan* on making > anymore JDK1.1 releases as I'd like to focus my efforts on JDK1.2. > However, if there are *significant* bugs in JDK1.1 (feel free to > convince me) in the FreeBSD portions of the JDK and/or Sun releases a > new JDK1.1 release *and/or* someone submits working ELF patches for a > JDK1.1 port, make a new release. Ok. I recongnize. > > > Who should deal with this problem? > > > > Maybe the best is working of Sun. But the realistic solution is dealing > > with it by powerful porting team. > > The porting team has no 'power' per-se. We just make a port, and have > no relationship with Sun. :( Uhhmm. I want to do something for the porting team. What is the work that I can do now? ( For example, now I am dealing with FreeBSD ANNOUNCE MAIL Translation in doc-jp project). Well, I will write a piece of article about FreeBSD & Java in a JAVA PRESS (one of the java magazines in Japan). So, I want to know the state of the porting team and the work in details. Please tell me that, please m(_ _)m (who, how, when.... I do not know it in details. Uhmm. very I'm sorry) ---- Daichi T.GOTO (ONGS) http://www.ongs.net/daichi, daichi@ongs.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Jan 12 09:10:27 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA12969 for freebsd-java-outgoing; Tue, 12 Jan 1999 09:10:27 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA12962 for ; Tue, 12 Jan 1999 09:10:25 -0800 (PST) (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.8.8/8.8.8) with SMTP id KAA22541; Tue, 12 Jan 1999 10:09:24 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id KAA22451; Tue, 12 Jan 1999 10:09:24 -0700 Date: Tue, 12 Jan 1999 10:09:24 -0700 Message-Id: <199901121709.KAA22451@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "Daichi T.GOTO" Cc: freebsd-java@FreeBSD.ORG Subject: Re: About Japanese problem with Swing. In-Reply-To: <19990112214638K.daichi@ongs.net> References: <199901110459.NAA28695@cafe.muraoka.info.waseda.ac.jp> <19981231233944V.daichi@ongs.net> <199901111818.LAA16580@mt.sri.com> <19990112214638K.daichi@ongs.net> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Uhhmm. I want to do something for the porting team. Great. > What is the work that I can do now? > ( For example, now I am dealing with FreeBSD ANNOUNCE MAIL Translation > in doc-jp project). Thanks! > Well, I will write a piece of article about FreeBSD & Java in a JAVA > PRESS (one of the java magazines in Japan). So, I want to know the state > of the porting team and the work in details. What kind of details do you want? > (who, how, when.... I do not know it in details. Uhmm. very I'm sorry) I'm not sure knowing who is doing the work will be much help, since it's been two people doing most of the coding lately. :) Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Jan 12 18:20:27 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA10469 for freebsd-java-outgoing; Tue, 12 Jan 1999 18:20:27 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from corona.jcmax.com (corona.jcmax.com [204.69.248.2]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id SAA10464 for ; Tue, 12 Jan 1999 18:20:25 -0800 (PST) (envelope-from pusateri@juniper.net) Received: from extreme.jcmax.com by corona.jcmax.com (5.65/2.68G/4.1.3_U1) id AA07277; Tue, 12 Jan 99 21:19:47 -0500 Received: from extreme.jcmax.com (localhost.jcmax.com [127.0.0.1]) by extreme.jcmax.com (8.8.7/8.7.3) with ESMTP id VAA26097 for ; Tue, 12 Jan 1999 21:19:47 -0500 (EST) Message-Id: <199901130219.VAA26097@extreme.jcmax.com> To: freebsd-java@FreeBSD.ORG Subject: _xmDrawingAreaWidgetClass Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Id: <26094.916193981.1@extreme.jcmax.com> Date: Tue, 12 Jan 1999 21:19:41 -0500 From: Tom Pusateri Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I recently installed the jdk1.1.7.V98-12-21.tar.gz package by updating the ports collection and everything appeared to go smoothly. I added /usr/local/jdk1.1.7/bin to my path. However, when ever I try to run one of the demos, I get this same error: pusateri [boone.cc.wake-forest.nc.us:80] appletviewer GraphApplet Undefined symbol "_xmDrawingAreaWidgetClass" in java:/usr/local/jdk1.1.7/lib/i386/green_threads/libawt.so (libawt.so) java.lang.UnsatisfiedLinkError: no awt in shared library path at java.lang.Runtime.loadLibrary(Runtime.java) at java.lang.System.loadLibrary(System.java) at at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:394) at sun.applet.AppletCopyright.(AppletCopyright.java:28) at sun.applet.AppletViewer.mainInit(AppletViewer.java:1030) at sun.applet.AppletViewer.main(AppletViewer.java:1039) I've tried this with lesstif installed and un-installed. Any suggestions? Thanks, Tom To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Jan 12 18:21:15 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA10548 for freebsd-java-outgoing; Tue, 12 Jan 1999 18:21:15 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from fever.semiotek.com (host-062.canadiantire.ca [209.146.201.62]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA10541 for ; Tue, 12 Jan 1999 18:21:13 -0800 (PST) (envelope-from reader@fever.semiotek.com) Received: (from reader@localhost) by fever.semiotek.com (8.8.8/8.8.7) id VAA02530 for freebsd-java@freebsd.org; Tue, 12 Jan 1999 21:20:38 -0500 (EST) (envelope-from reader) Message-ID: <19990112212038.E2400@semiotek.com> Date: Tue, 12 Jan 1999 21:20:38 -0500 From: Justin Wells To: freebsd-java@FreeBSD.ORG Subject: busywait in IOstream code? Mail-Followup-To: freebsd-java@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.1i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have a multithreaded program which normally runs under a web server, but I have a bunch of command line test harnesses that I run against it, basically I type in a command and it does something--I use this to debug my program. However, I noticed when doing this that my background threads weren't ever getting a chance to execute. Doing this in a high priority thread: for(;;;) { sleep(someTime); } solved the problem (causes a thread scheduling event every someTime msecs). I conclude from this that there is some code in IOStream that is busywaiting and not yielding. It may only happen when IO is being read from the console, since have not noticed the bug when IO comes from somewhere else (usu. servletrunner, Apache-jserv, etc.). Busy-waiting in general is bad; busy-waiting without even a yield is a nasty bug. (Even with a yield it is dubious.) Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Jan 13 11:04:32 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA01819 for freebsd-java-outgoing; Wed, 13 Jan 1999 11:04:32 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from corona.jcmax.com (corona.jcmax.com [204.69.248.2]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id LAA01804 for ; Wed, 13 Jan 1999 11:04:27 -0800 (PST) (envelope-from pusateri@juniper.net) Received: from extreme.jcmax.com by corona.jcmax.com (5.65/2.68G/4.1.3_U1) id AA27573; Wed, 13 Jan 99 11:57:00 -0500 Received: from extreme.jcmax.com (localhost.jcmax.com [127.0.0.1]) by extreme.jcmax.com (8.8.7/8.7.3) with ESMTP id LAA28597; Wed, 13 Jan 1999 11:56:54 -0500 (EST) Message-Id: <199901131656.LAA28597@extreme.jcmax.com> To: Nate Williams Cc: Tom Pusateri , freebsd-java@FreeBSD.ORG Subject: Re: _xmDrawingAreaWidgetClass In-Reply-To: Your message of "Wed, 13 Jan 1999 09:45:57 MST." <199901131645.JAA27747@mt.sri.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Id: <28594.916246603.1@extreme.jcmax.com> Date: Wed, 13 Jan 1999 11:56:43 -0500 From: Tom Pusateri Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199901131645.JAA27747@mt.sri.com> you write: >> I recently installed the jdk1.1.7.V98-12-21.tar.gz package by updating >> the ports collection and everything appeared to go smoothly. >> I added /usr/local/jdk1.1.7/bin to my path. >> However, when ever I try to run one of the demos, I get this same error: >> >> pusateri [boone.cc.wake-forest.nc.us:80] appletviewer GraphApplet >> Undefined symbol "_xmDrawingAreaWidgetClass" in java:/usr/local/jdk1.1.7/lib >/i386/green_threads/libawt.so (libawt.so) > >There is a typo in the appletviewer as distributed. Check the archives >for a patch, or download the FreeBSD JDK 'port' which has the patch in >it. > > >Nate Thanks, I got the patch last night and it worked. I would have found it in the mailing list but last week is missing from the http archive. There is not 1999. After hearing about the patch, I looked at the ftp archive instead and there I found people with the same problem. Thanks, Tom To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Jan 13 11:14:35 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA04714 for freebsd-java-outgoing; Wed, 13 Jan 1999 11:14:35 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA04619 for ; Wed, 13 Jan 1999 11:14:16 -0800 (PST) (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.8.8/8.8.8) with SMTP id JAA02539; Wed, 13 Jan 1999 09:45:58 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id JAA27747; Wed, 13 Jan 1999 09:45:57 -0700 Date: Wed, 13 Jan 1999 09:45:57 -0700 Message-Id: <199901131645.JAA27747@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Tom Pusateri Cc: freebsd-java@FreeBSD.ORG Subject: Re: _xmDrawingAreaWidgetClass In-Reply-To: <199901130219.VAA26097@extreme.jcmax.com> References: <199901130219.VAA26097@extreme.jcmax.com> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I recently installed the jdk1.1.7.V98-12-21.tar.gz package by updating > the ports collection and everything appeared to go smoothly. > I added /usr/local/jdk1.1.7/bin to my path. > However, when ever I try to run one of the demos, I get this same error: > > pusateri [boone.cc.wake-forest.nc.us:80] appletviewer GraphApplet > Undefined symbol "_xmDrawingAreaWidgetClass" in java:/usr/local/jdk1.1.7/lib/i386/green_threads/libawt.so (libawt.so) There is a typo in the appletviewer as distributed. Check the archives for a patch, or download the FreeBSD JDK 'port' which has the patch in it. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Jan 13 11:14:37 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA04723 for freebsd-java-outgoing; Wed, 13 Jan 1999 11:14:37 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA04651 for ; Wed, 13 Jan 1999 11:14:20 -0800 (PST) (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.8.8/8.8.8) with SMTP id JAA02568; Wed, 13 Jan 1999 09:50:55 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id JAA27754; Wed, 13 Jan 1999 09:50:54 -0700 Date: Wed, 13 Jan 1999 09:50:54 -0700 Message-Id: <199901131650.JAA27754@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Justin Wells Cc: freebsd-java@FreeBSD.ORG Subject: Re: busywait in IOstream code? In-Reply-To: <19990112212038.E2400@semiotek.com> References: <19990112212038.E2400@semiotek.com> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I have a multithreaded program which normally runs under a web server, > but I have a bunch of command line test harnesses that I run against it, > basically I type in a command and it does something--I use this to debug > my program. > > However, I noticed when doing this that my background threads weren't > ever getting a chance to execute. Doing this in a high priority thread: > > for(;;;) { sleep(someTime); } > > solved the problem (causes a thread scheduling event every someTime msecs). > > I conclude from this that there is some code in IOStream that is > busywaiting and not yielding. All system calls (which involves all I/O) in FreeBSD blocks until it finishes by the very nature of a single-threaded kernel. This is not a JVM problem, but a problem with *ALL* Java implementation which use green-threads, which attempt to emulate kernel threads. By throwing in your high priority thread doing the sleep, it makes the green threads solution a bit more deterministic by kicking the scheduler which attempts to (badly, but better than nothing) allow other threads to be scheduled. In Java on unix, threads are not pre-emptively scheduled, but each thread is allowed to run till whenever it decides to give up (not quite true, but for the most part true). This is the same behavior as on the Solaris 'reference' platform and is not specific to FreeBSD. It's not an issue of busy-waiting, it's an issue of not using pre-emptive multi-tasking (which is not a requirement). For a better description of the above behavior, see the O'Reilly book 'Java Threads' by Oaks et al. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Jan 13 11:44:51 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA12878 for freebsd-java-outgoing; Wed, 13 Jan 1999 11:44:51 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from skylink.skylink.net (skylink.skylink.net [206.25.34.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA12866 for ; Wed, 13 Jan 1999 11:44:49 -0800 (PST) (envelope-from hermit@skylink.net) Received: from skylink.net (hermit.skylink.net [206.25.34.75] (may be forged)) by skylink.skylink.net (8.9.1a/8.9.1) with ESMTP id LAA06039 for ; Wed, 13 Jan 1999 11:45:23 GMT Message-ID: <369CF798.39D488BB@skylink.net> Date: Wed, 13 Jan 1999 11:44:24 -0800 From: Skylink X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-java@FreeBSD.ORG Subject: help with a jre problem. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I installed the jdk and kaffe from the ports collection of a FreeBSD 2.2.8-Stable installation. I was having a problem not being able to find the class files. Here is the error message I got when trying to run a java application with kaffe. su-2.02$ kaffe -classpath "/usr/home/power/server_classes/" STServer 10000 9004 Cannot find essential class 'java/lang/Object' in class library ... aborting. Abort trap (core dumped) I solved this error message by adding the classpath to the classes.zip file. kaffe -classpath "/usr/local/jdk1.1.7/lib/classes.zip:/usr/home/power/server_cl asses/" STServer 10000 9004 But now when I try to run any java applications it just swells in memory to above 85megs. It also pegs out the processer to 98%. 21456 power 80 0 89356K 89036K RUN 0:49 97.33% 88.96% Kaffe This is after running for a few minutes. 21456 power -18 0 156M 89272K swread 1:25 6.60% 6.60% Kaffe After running for a few minutes the app Core Dumps with the following message. Illegal instruction - core dumped The same thing also happens when I try to run any of the demo applications included with the JDK. The machine is a Pentium Pro 200 with 128megs of Ram. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Jan 13 13:11:42 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA01579 for freebsd-java-outgoing; Wed, 13 Jan 1999 13:11:42 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from wrath.cs.utah.edu (wrath.cs.utah.edu [155.99.198.100]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA01561 for ; Wed, 13 Jan 1999 13:11:39 -0800 (PST) (envelope-from gback@cs.utah.edu) Received: from sal.cs.utah.edu (sal.cs.utah.edu [155.99.195.64]) by wrath.cs.utah.edu (8.8.8/8.8.8) with ESMTP id OAA07570; Wed, 13 Jan 1999 14:10:28 -0700 (MST) From: Godmar Back Received: (from gback@localhost) by sal.cs.utah.edu (8.8.8/8.8.8) id OAA20125; Wed, 13 Jan 1999 14:11:29 -0700 (MST) Message-Id: <199901132111.OAA20125@sal.cs.utah.edu> Subject: Re: help with a jre problem. To: hermit@skylink.net (Skylink) Date: Wed, 13 Jan 1999 14:11:28 -0700 (MST) Cc: freebsd-java@FreeBSD.ORG In-Reply-To: <369CF798.39D488BB@skylink.net> from "Skylink" at Jan 13, 99 11:44:24 am X-Mailer: ELM [version 2.4 PL25] 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 You cannot use Sun's classes.zip with Kaffe. Newer versions of kaffe will complain if you do that. Instead, use setenv CLASSPATH /usr/home/power/server_classes kaffe STServer 10000 9004 Also, you should send kaffe related problems to kaffe@rufus.w3.org. This mailing list is for people using Sun's FreeBSD java port. - Godmar > > I installed the jdk and kaffe from the ports collection of a FreeBSD > 2.2.8-Stable installation. > > I was having a problem not being able to find the class files. Here is > the error message I got when trying to run a java application with > kaffe. > > su-2.02$ kaffe -classpath "/usr/home/power/server_classes/" STServer > 10000 9004 > Cannot find essential class 'java/lang/Object' in class library ... > aborting. > Abort trap (core dumped) > > I solved this error message by adding the classpath to the classes.zip > file. > kaffe -classpath > "/usr/local/jdk1.1.7/lib/classes.zip:/usr/home/power/server_cl > asses/" STServer 10000 9004 > > But now when I try to run any java applications it just swells in memory > to above 85megs. It also pegs out the processer to 98%. > > 21456 power 80 0 89356K 89036K RUN 0:49 97.33% 88.96% Kaffe > This is after running for a few minutes. > 21456 power -18 0 156M 89272K swread 1:25 6.60% 6.60% Kaffe > After running for a few minutes the app Core Dumps with the following > message. > Illegal instruction - core dumped > > The same thing also happens when I try to run any of the demo > applications included with the JDK. > > The machine is a Pentium Pro 200 with 128megs of Ram. > > > 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 From owner-freebsd-java Wed Jan 13 13:14:33 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA02027 for freebsd-java-outgoing; Wed, 13 Jan 1999 13:14:33 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA02020 for ; Wed, 13 Jan 1999 13:14:32 -0800 (PST) (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.8.8/8.8.8) with SMTP id OAA04896; Wed, 13 Jan 1999 14:13:24 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id OAA29747; Wed, 13 Jan 1999 14:13:23 -0700 Date: Wed, 13 Jan 1999 14:13:23 -0700 Message-Id: <199901132113.OAA29747@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Skylink Cc: freebsd-java@FreeBSD.ORG Subject: Re: help with a jre problem. In-Reply-To: <369CF798.39D488BB@skylink.net> References: <369CF798.39D488BB@skylink.net> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I installed the jdk and kaffe from the ports collection of a FreeBSD > 2.2.8-Stable installation. > > I was having a problem not being able to find the class files. Here is > the error message I got when trying to run a java application with > kaffe. > > su-2.02$ kaffe -classpath "/usr/home/power/server_classes/" STServer > 10000 9004 > Cannot find essential class 'java/lang/Object' in class library ... > aborting. > Abort trap (core dumped) First of all, this is a 'kaffe' error, not a JDK/JRE error. Others may be able to say more on this, but since you're using the kaffe VM which is a clone of the 'java' VM, you must explicitly list *ALL* of the necessary classes. > I solved this error message by adding the classpath to the classes.zip > file. > kaffe -classpath > "/usr/local/jdk1.1.7/lib/classes.zip:/usr/home/power/server_cl > asses/" STServer 10000 9004 You got it. > But now when I try to run any java applications it just swells in memory > to above 85megs. It also pegs out the processer to 98%. I don't think you can mix the 'JDK' classes and the 'kaffe' classes. I don't know how to point it at the Kaffe classes, but if you were using Java it would be: java -classpath \ /usr/local/jdk1.1.7/lib/classes.zip:/usr/home/power/server_classes \ STServer 10000 9004 No need for quotes. If it works fine, then somehow kaffe is messed up or you need to run it differently for kaffe. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Jan 14 03:29:21 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA24251 for freebsd-java-outgoing; Thu, 14 Jan 1999 03:29:21 -0800 (PST) (envelope-from owner-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 (8.8.8/8.8.8) with ESMTP id DAA24245 for ; Thu, 14 Jan 1999 03:29:19 -0800 (PST) (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 UAA03328 for ; Thu, 14 Jan 1999 20:27:54 +0900 Message-Id: <199901141127.UAA03328@cafe.muraoka.info.waseda.ac.jp> To: freebsd-java@FreeBSD.ORG Subject: Re: About Japanese problem with Swing. In-reply-to: Your message of "Thu, 31 Dec 1998 23:39:44 JST." <19981231233944V.daichi@ongs.net> Date: Thu, 14 Jan 1999 20:27:53 +0900 From: SHUDO Kazuyuki Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > the environment values: > > LANG=ja_JP.EUC > > The information "file.encoding=8859_1" is bad. > > That should be "file.encoding=EUC_JP". > I think so. A default value of property `file.encoding' > should follow locale of the system. > > Who should deal with this problem? > > Maybe the best is working of Sun. Now I don't think so. Porting team should make JDK recognize locale name which is depend on each platform. On SunOS 5, `ja' and `japanese' are only locale names for Japanese. JDK for SunOS 5 supports these two locale names, but JDK for FreeBSD should recognize locale names on FreeBSD such as `ja_JP.EUC'. A file.encoding property have to be `EUC_JP' if locale name (LANG) represents Japanese(ja) as language and EUC as encoding. I've not get souce code of JDK 1.2, but guess that JDK 1.2 for SunOS 5 recognize only `ja' and `japanese' as locale name. I'll wait issue of new and more liberal source code license. Note that encoding name `EUC' (extended unix code) don't specify language. There are several EUCes, for Japanese, Chinese, Korean and Taiwanese. Kazuyuki SHUDO Happy Hacking! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Jan 14 09:17:46 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA02299 for freebsd-java-outgoing; Thu, 14 Jan 1999 09:17:46 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA02294 for ; Thu, 14 Jan 1999 09:17:45 -0800 (PST) (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.8.8/8.8.8) with SMTP id KAA13238; Thu, 14 Jan 1999 10:16:31 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id KAA06017; Thu, 14 Jan 1999 10:16:30 -0700 Date: Thu, 14 Jan 1999 10:16:30 -0700 Message-Id: <199901141716.KAA06017@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: About Japanese problem with Swing. In-Reply-To: <199901141127.UAA03328@cafe.muraoka.info.waseda.ac.jp> References: <19981231233944V.daichi@ongs.net> <199901141127.UAA03328@cafe.muraoka.info.waseda.ac.jp> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > Maybe the best is working of Sun. > > Now I don't think so. Porting team should make JDK > recognize locale name which is depend on each platform. I'm easy that way, so if you provide a patch, someone will commit. There's no guarantee that I'll make a new release, but then again there's no guarantee I won't. :) Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Jan 14 10:11:03 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA09849 for freebsd-java-outgoing; Thu, 14 Jan 1999 10:11:03 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from zeus.kia.net ([205.252.89.69]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA09844 for ; Thu, 14 Jan 1999 10:11:02 -0800 (PST) (envelope-from patrick@sticking.com) Received: from localhost (patrick@localhost) by zeus.kia.net (8.9.2/8.9.2) with ESMTP id NAA27653 for ; Thu, 14 Jan 1999 13:10:11 -0500 (EST) Date: Thu, 14 Jan 1999 13:10:11 -0500 (EST) From: Patrick McCuller X-Sender: patrick@zeus.kia.net To: java@FreeBSD.ORG Subject: status of a java 1.2 port? 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 Is there a status? Can I possibly help? Patrick McCuller Chief Technical Officer KIA Internet Solutions, Inc. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Jan 14 10:30:51 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA12913 for freebsd-java-outgoing; Thu, 14 Jan 1999 10:30:51 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from skylink.skylink.net (skylink.skylink.net [206.25.34.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA12908 for ; Thu, 14 Jan 1999 10:30:49 -0800 (PST) (envelope-from tmortensen@skylink.net) Received: from tmortensen (hermit.skylink.net [206.25.34.75] (may be forged)) by skylink.skylink.net (8.9.1a/8.9.1) with SMTP id KAA17215; Thu, 14 Jan 1999 10:31:15 GMT From: "Todd Mortensen" To: Cc: Subject: java can't find the classes. Date: Thu, 14 Jan 1999 10:30:25 -0800 Message-ID: <000401be3feb$f454b890$4b2219ce@tmortensen.skylink.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have been beating my head against the wall with this one. I have installed the jdk from the ports collection of a 2.2.8-stable machine. Whenever I try to run any java apps it complains about not being able to find a class file of some type. I have found all the ways of telling it the location of the classes.zip file with no luck at all. Here is a shot of what I have set. bash-2.02$ which java /usr/local/jdk1.1.7/bin/java bash-2.02$ echo $CLASSPATH /usr/local/jdk1.1.7/lib/classes.zip bash-2.02$ cat start #!/bin/sh java -classpath \ /usr/local/jdk1.1.7/lib/classes.zip:/usr/home/power/server_classes \ STServer 10000 9004 bash-2.02$ ./start Unable to initialize threads: cannot find class java/lang/Thread I have read that you shouldn't need the $CLASSPATH enviroment set but that still give the same result. Do I need to unpack the classes.zip file under FreeBSD? Thanks for any feedback. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Jan 14 11:38:57 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA24826 for freebsd-java-outgoing; Thu, 14 Jan 1999 11:38:57 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from pluto.plutotech.com (mail.plutotech.com [206.168.67.137]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA24821 for ; Thu, 14 Jan 1999 11:38:56 -0800 (PST) (envelope-from kelly@plutotech.com) Received: from plutotech.com (tampopo.plutotech.com [206.168.67.161]) by pluto.plutotech.com (8.9.1/8.9.1) with ESMTP id MAA22256; Thu, 14 Jan 1999 12:37:46 -0700 (MST) (envelope-from kelly@plutotech.com) Message-ID: <369E4789.BE785970@plutotech.com> Date: Thu, 14 Jan 1999 12:37:45 -0700 From: Sean Kelly Organization: Pluto Technologies X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 3.0-CURRENT i386) MIME-Version: 1.0 To: Todd Mortensen CC: freebsd-java@FreeBSD.ORG, support@servertech.com Subject: Re: java can't find the classes. References: <000401be3feb$f454b890$4b2219ce@tmortensen.skylink.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Do I need to unpack the classes.zip file under FreeBSD? Nope. And your script looks fine, too. Is there any chance the file /usr/local/jdk1.1.7/lib/classes.zip doesn't exist or isn't readable? --Sean To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Jan 14 11:42:54 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA25365 for freebsd-java-outgoing; Thu, 14 Jan 1999 11:42:54 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA25343 for ; Thu, 14 Jan 1999 11:42:51 -0800 (PST) (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.8.8/8.8.8) with SMTP id MAA14438; Thu, 14 Jan 1999 12:41:43 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id MAA06863; Thu, 14 Jan 1999 12:41:42 -0700 Date: Thu, 14 Jan 1999 12:41:42 -0700 Message-Id: <199901141941.MAA06863@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Patrick McCuller Cc: java@FreeBSD.ORG Subject: Re: status of a java 1.2 port? In-Reply-To: References: X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Is there a status? None that I'm aware of. > Can I possibly help? To help, you could do the port and we could use your work instead of doing it ourselves. :) Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Jan 14 11:46:10 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA26024 for freebsd-java-outgoing; Thu, 14 Jan 1999 11:46:10 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA26017 for ; Thu, 14 Jan 1999 11:46:09 -0800 (PST) (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.8.8/8.8.8) with SMTP id MAA14466; Thu, 14 Jan 1999 12:45:00 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id MAA06871; Thu, 14 Jan 1999 12:44:59 -0700 Date: Thu, 14 Jan 1999 12:44:59 -0700 Message-Id: <199901141944.MAA06871@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: "Todd Mortensen" Cc: , Subject: Re: java can't find the classes. In-Reply-To: <000401be3feb$f454b890$4b2219ce@tmortensen.skylink.net> References: <000401be3feb$f454b890$4b2219ce@tmortensen.skylink.net> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I have been beating my head against the wall with this one. I have > installed the jdk from the ports collection of a 2.2.8-stable machine. I'm not sure what's going on. I use the code *everyday* on my box, and it works fine. > Do I need to unpack the classes.zip file under FreeBSD? Certainly not. Here's a thought. Can you try a simple 'java' program to see if that works? Also, are you sure the permissions in /usr/local/jdk1.1.7 are correct? Start with something simple before trying the hard stuff. Try the following: public class HelloWorld { public static void main(String args[]) { System.out.println("Hello World"); } } % javac HelloWorld.java % java HelloWorld If that doesn't work, then something is wrong with the installation. If it does work, then I'd guess that the other program you're using was compiled with a different version of Java or something. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Jan 14 11:49:14 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA26641 for freebsd-java-outgoing; Thu, 14 Jan 1999 11:49:14 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from picnic.mat.net (picnic.mat.net [206.246.122.117]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA26620 for ; Thu, 14 Jan 1999 11:49:10 -0800 (PST) (envelope-from chuckr@mat.net) Received: from localhost (chuckr@localhost) by picnic.mat.net (8.9.1/8.8.5) with ESMTP id OAA03437; Thu, 14 Jan 1999 14:46:57 -0500 (EST) Date: Thu, 14 Jan 1999 14:46:56 -0500 (EST) From: Chuck Robey To: Todd Mortensen cc: freebsd-java@FreeBSD.ORG Subject: Re: java can't find the classes. In-Reply-To: <000401be3feb$f454b890$4b2219ce@tmortensen.skylink.net> 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 On Thu, 14 Jan 1999, Todd Mortensen wrote: > > I have been beating my head against the wall with this one. I have > installed the jdk from the ports collection of a 2.2.8-stable machine. > Whenever I try to run any java apps it complains about not being able to > find a class file of some type. I have found all the ways of telling it the > location of the classes.zip file with no luck at all. Here is a shot of > what I have set. > > bash-2.02$ which java > /usr/local/jdk1.1.7/bin/java Not hard, although maybe not immediately obvious. First thing, java regards .zip and .jar files as if they were (in themselves) directories, so if you want a particular class in something.zip to be found, then the classpath has to exactly include that something.zip, not just the directory that something.zip resides in. Second point is, your code itself has to reside somewhere in the classpath, and your current directory *isn't* searched by default. That's the reason that most classpath's begin with ".:" to tell java to look in your current directory first. You don't have to use that method, but your classpath has to include the directory (or zip file, or jar file) of the code you want to run, AND the classes.zip from the jdk, AND any other pieces you want to get found. There's some problem with kaffee being compatible with the Sun jdk, I don't know what it is, but your CLASSPATH probably ought to be: .:/usr/local/jdk1.1.7/lib/classes.zip:/usr/home/power/server_classes Note what I said about zip and jar files being used as if they were directories, keeping that in mind will simplify things. > bash-2.02$ echo $CLASSPATH > /usr/local/jdk1.1.7/lib/classes.zip > bash-2.02$ cat start > #!/bin/sh > java -classpath \ > /usr/local/jdk1.1.7/lib/classes.zip:/usr/home/power/server_classes \ > STServer 10000 9004 > bash-2.02$ ./start > Unable to initialize threads: cannot find class java/lang/Thread > > I have read that you shouldn't need the $CLASSPATH enviroment set but that > still give the same result. > > Do I need to unpack the classes.zip file under FreeBSD? Never do this, NEVER! > Thanks for any feedback. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message > > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@glue.umd.edu | communications topic, C programming, and Unix. 213 Lakeside Drive Apt T-1 | Greenbelt, MD 20770 | I run Journey2 and picnic (FreeBSD-current) (301) 220-2114 | and jaunt (NetBSD). ----------------------------+----------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message