From owner-freebsd-java@FreeBSD.ORG Sun Jan 23 04:02:29 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91B5116A4CF for ; Sun, 23 Jan 2005 04:02:29 +0000 (GMT) Received: from web51802.mail.yahoo.com (web51802.mail.yahoo.com [206.190.38.233]) by mx1.FreeBSD.org (Postfix) with SMTP id 1869043D5C for ; Sun, 23 Jan 2005 04:02:29 +0000 (GMT) (envelope-from huanghwh@yahoo.com) Received: (qmail 71601 invoked by uid 60001); 23 Jan 2005 04:02:12 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=4zV8cmXKtIcgr4DYMVTHkJFkMwpMw0f2FmQn0TdY+rqH2pqlHy1mJhlJwz9Au9M7dduth8Hz/Do58/FfMXQzRxFVVlb4lgnm2ppINL549DTu8QjQyipZmukRlMmkvgniaid9ubAATKgbPfWPzjLdfgqfmqRihCmSwcJYnzm+Cw4= ; Message-ID: <20050123040212.71599.qmail@web51802.mail.yahoo.com> Received: from [218.20.157.197] by web51802.mail.yahoo.com via HTTP; Sun, 23 Jan 2005 12:02:12 CST Date: Sun, 23 Jan 2005 12:02:12 +0800 (CST) From: huang wen hui To: Alexey Zelkin In-Reply-To: <20050121101652.GA93319@phantom.cris.net> MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit cc: java@freebsd.org Subject: Fixed: Re: amd64 and Intel processors problem (was: Re: jdk15 fail compile under amd64) X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2005 04:02:29 -0000 --- Alexey Zelkin 的正文: > hi, > > Thank you for posting of your dmesg and backtraces. > They described > a problem. > > Unfortunatelly, JVM building/built for amd64, > expects to be running > at real amd64 hardware. And in your case, you're > using Intel hardware > running in amd64 emulation mode (as far as I > understand). > > At this point -- it's impossible to use such > combination, sorry. ok, from search web, the problem is Intel EM64T does not suport 3DNow: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5095421 http://www.blackdown.org/java-linux/java-linux@java.blackdown.org/java-linux-msg00159.html and from jdk16,this problem can be fixed: --- ../../hotspot/src/os_cpu/bsd_amd64/vm/prefetch_bsd_amd64.inline.hpp~ Fri Jan 21 12:10:42 2005 +++ ../../hotspot/src/os_cpu/bsd_amd64/vm/prefetch_bsd_amd64.inline.hpp Sun Jan 23 09:37:34 2005 @@ -16,6 +16,10 @@ // Force prefetchw. The gcc builtin produces prefetcht0 or prefetchw // depending on command line switches we don't control here. // Use of this method should be gated by VM_Version::has_prefetchw. - __asm__ ("prefetchw (%0,%1,1)" : : "r" (loc), "r" (interval)); + //__asm__ ("prefetchw (%0,%1,1)" : : "r" (loc), "r" (interval)); // __builtin_prefetch((char*) loc + interval, 1); // prefetcht0/prefetchw (%rsi,%rdi,1) + // Do not use the 3dnow prefetchw instruction. It isn't supported on em64t. + // __asm__ ("prefetchw (%0,%1,1)" : : "r" (loc), "r" (interval)); + __asm__ ("prefetcht0 (%0,%1,1)" : : "r" (loc), "r" (interval)); + } Now, I can use JDK1.5 on my PE1850:) --hwh _________________________________________________________ Do You Yahoo!? 嫌邮箱太小?雅虎电邮自助扩容! http://cn.rd.yahoo.com/mail_cn/tag/10m/*http://cn.mail.yahoo.com/event/10m.html From owner-freebsd-java@FreeBSD.ORG Sun Jan 23 06:25:59 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16C4116A4CE for ; Sun, 23 Jan 2005 06:25:59 +0000 (GMT) Received: from tydfam.jp (ns.tydfam.jp [61.197.228.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8630843D31 for ; Sun, 23 Jan 2005 06:25:58 +0000 (GMT) (envelope-from ken@tydfam.jp) Received: from localhost (tyd3.sub.tydfam.jp [192.168.1.3]) by tydfam.jp (8.13.1/8.13.1) with ESMTP id j0N6PxoY042943 for ; Sun, 23 Jan 2005 15:25:59 +0900 (JST) (envelope-from ken@tydfam.jp) Date: Sun, 23 Jan 2005 15:23:18 +0900 (JST) Message-Id: <20050123.152318.846938018.ken@tydfam.jp> To: freebsd-java@freebsd.org From: Yamada Ken Takeshi X-Mailer: Mew version 3.3 on XEmacs 21.4.14 (Reasonable Discussion) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Q) JDK 1.5 compilation on amd64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2005 06:25:59 -0000 Could anyone successfuly compile jdk15 from ports/java/jdk15 on amd64(64bit)? I had the following error, and couldn't with -current, opteron X 2, and your suggestions are very appreciated to complete the compilation. I used linux-jdk1.5.0 (64bit) instead of jdk-1.4.2, but jdk-1.4.2 gave me the same result. : : : : : va ../../../src/share/classes/sun/misc/AtomicLongLockImpl.java ../../../src/share/classes/sun/reflect/ConstantPool.java ../../../src/share/classes/sun/reflect/NativeConstructorAccessorImpl.java ../../../src/share/classes/sun/reflect/NativeMethodAccessorImpl.java ../../../src/share/classes/sun/reflect/Reflection.java ; \ fi execv(): Bad address Error trying to exec /usr/local/linux-jdk1.5.0/bin/javac. Check if file exists and permissions are set correctly. gmake[3]: *** [.compile.classlist] Error 1 gmake[3]: Leaving directory `/home/jdk15/work/j2se/make/java/java' gmake[2]: *** [all] Error 1 gmake[2]: Leaving directory `/home/jdk15/work/j2se/make/java' gmake[1]: *** [all] Error 1 gmake[1]: Leaving directory `/home/jdk15/work/j2se/make' gmake: *** [j2se-build] Error 2 *** Error code 2 From owner-freebsd-java@FreeBSD.ORG Sun Jan 23 21:32:04 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 723E016A4CE for ; Sun, 23 Jan 2005 21:32:04 +0000 (GMT) Received: from mta1.siol.net (pegasus.siol.net [193.189.160.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1669343D54 for ; Sun, 23 Jan 2005 21:31:59 +0000 (GMT) (envelope-from mte@brkini.net) Received: from edge1.siol.net ([10.10.10.210]) by mta1.siol.net with ESMTP id <20050123213157.JPUN22416.mta1.siol.net@edge1.siol.net> for ; Sun, 23 Jan 2005 22:31:57 +0100 Received: from [213.250.14.6] by edge1.siol.net with ESMTP id <20050123213152.OJEZ11496.edge1.siol.net@[213.250.14.6]> for ; Sun, 23 Jan 2005 22:31:52 +0100 Message-ID: <41F417B5.30207@brkini.net> Date: Sun, 23 Jan 2005 22:31:33 +0100 From: Matej User-Agent: Mozilla Thunderbird 1.0 (X11/20050103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Subject: jdk15 and azureus don't go well together X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2005 21:32:04 -0000 Hello, I've installed Azureus (the latest port) after jdk 1.5. Its splash screen appears until it says "Initializing Main Window". Then Azureus freezes. Doing Ctrl+C or Ctrl+D in terminal doesn't help - to use the terminal i had to move it to background and waiting it exists by itself after a few minutes. At first I thought there must be something wrong with swt, but eclipse runs with no problems, so I don't know. Just thout this might be useful to you for bug tracing.. thanks, Matej From owner-freebsd-java@FreeBSD.ORG Mon Jan 24 03:53:46 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E34A016A4CE for ; Mon, 24 Jan 2005 03:53:45 +0000 (GMT) Received: from ms-smtp-04-eri0.southeast.rr.com (ms-smtp-04-lbl.southeast.rr.com [24.25.9.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48AB843D1D for ; Mon, 24 Jan 2005 03:53:43 +0000 (GMT) (envelope-from brent@mutt.rcfile.org) Received: from mutt.rcfile.org (cpe-069-134-146-135.nc.rr.com [69.134.146.135])j0O3rdCh004319 for ; Sun, 23 Jan 2005 22:53:40 -0500 (EST) Received: from mutt.rcfile.org (localhost [127.0.0.1]) by mutt.rcfile.org (8.13.1/8.13.1) with ESMTP id j0O3rcUm068634 for ; Sun, 23 Jan 2005 22:53:38 -0500 (EST) (envelope-from brent@mutt.rcfile.org) Received: (from brent@localhost) by mutt.rcfile.org (8.13.1/8.13.1/Submit) id j0O3rc10068633 for freebsd-java@freebsd.org; Sun, 23 Jan 2005 22:53:38 -0500 (EST) (envelope-from brent) Date: Sun, 23 Jan 2005 22:53:38 -0500 From: Brent Verner To: freebsd-java@freebsd.org Message-ID: <20050124035338.GA68489@rcfile.org> References: <1106332573.54288.6.camel@renaissance.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1106332573.54288.6.camel@renaissance.homeip.net> X-muttrc: $Id: .muttrc,v 1.10 2003/02/08 08:35:24 brent Exp $ X-uname: FreeBSD 4.10-STABLE #31: Thu Nov 18 11:01:01 EST 2004 root@mutt.rcfile.org:/usr/obj/usr/src/sys/MUTT User-Agent: Mutt/1.5.6i X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on mutt.rcfile.org X-Virus-Scanned: Symantec AntiVirus Scan Engine Subject: Re: JDK1.5 regression from experimental to patchset 1 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2005 03:53:46 -0000 [2005-01-21 19:36] Anthony Ginepro said: | After successfully compiling both jdk, I found than patchset-1 makes | tomcat-5.0.30 and tomcat-5.5.4 really slow compared with | patchset-experimental. I am seeing similar performance from 1.5.0-p1 on 5.3-STABLE, too. Tomcat 5.5.7 takes between 4-6 minutes to start. Initial request for a jsp page takes 1-2 minutes. Subsequent requests are quick, with the exception of occasional (occuring a few times per minute) requests that seem to hang/block for 6-9 seconds. When the hang occurs, the java process is not consuming any cpu. The output of ab2 below confirms the 9 second hang observation. Let me know what/if there's anything I can do to assist in finding the cause of this behaviour. cheers. brent sleepy:~ $brent$ ab2 -n 100 -c 1 http://mini:8080/_res/dev/env.jsp This is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> apache-2.0 Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/ Benchmarking mini (be patient).....done Server Software: Apache-Coyote/1.1 Server Hostname: mini Server Port: 8080 Document Path: /_res/dev/env.jsp Document Length: 11689 bytes Concurrency Level: 1 Time taken for tests: 72.583510 seconds Complete requests: 100 Failed requests: 56 (Connect: 0, Length: 56, Exceptions: 0) Write errors: 0 Total transferred: 1190144 bytes HTML transferred: 1169044 bytes Requests per second: 1.38 [#/sec] (mean) Time per request: 725.835 [ms] (mean) Time per request: 725.835 [ms] (mean, across all concurrent requests) Transfer rate: 16.01 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.0 0 0 Processing: 5 725 2544.1 6 9924 Waiting: 4 723 2544.2 4 9922 Total: 5 725 2544.1 6 9924 Percentage of the requests served within a certain time (ms) 50% 6 66% 6 75% 8 80% 15 90% 42 95% 9910 98% 9923 99% 9924 100% 9924 (longest request) | | tomcat startup with 1.5.0-p1 : 133906 ms | tomcat startup with 1.5.0-exp: 4268 ms | | All jsp pages are also really slow to use at first. | | If you want me to try patchset in order to solve the issue or if you | need more information, send email directly. | | Thanks again for all your good work, | Anthony. | _______________________________________________ | freebsd-java@freebsd.org mailing list | http://lists.freebsd.org/mailman/listinfo/freebsd-java | To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" -- From owner-freebsd-java@FreeBSD.ORG Mon Jan 24 05:25:07 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4217116A4CE for ; Mon, 24 Jan 2005 05:25:07 +0000 (GMT) Received: from www.enhyper.com (mailgate.enhyper.com [62.49.250.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2648043D45 for ; Mon, 24 Jan 2005 05:25:06 +0000 (GMT) (envelope-from iang@iang.org) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by www.enhyper.com (8.11.6/8.11.6) with SMTP id j0O5Od219770; Mon, 24 Jan 2005 05:24:46 GMT X-Authentication-Warning: www.enhyper.com: localhost.localdomain [127.0.0.1] didn't use HELO protocol Message-ID: <41F487D1.3060805@iang.org> Date: Mon, 24 Jan 2005 05:29:53 +0000 From: Ian G Organization: http://iang.org/ User-Agent: Mozilla Thunderbird 1.0 (X11/20050108) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Brent Verner References: <1106332573.54288.6.camel@renaissance.homeip.net> <20050124035338.GA68489@rcfile.org> In-Reply-To: <20050124035338.GA68489@rcfile.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-java@freebsd.org Subject: Re: JDK1.5 regression from experimental to patchset 1 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2005 05:25:07 -0000 Brent Verner wrote: >When the hang occurs, the java process is not >consuming any cpu. > > you probably already tried this, but does hitting it with CTRL\ work? If the JVM is sent a SIGQUIT or kill -3 then it dumps the threads on stdout. Examples below. This can give some clues as to what it is waiting on, if you hit at the appropriate moment. iang -- News and views on what matters in finance+crypto: http://financialcryptography.com/ ^Z [1]+ Stopped ./wf Wf(sox)localhost$ bg [1]+ ./wf & Wf(sox)localhost$ kill -3 %1 Full thread dump Java HotSpot(TM) Client VM (1.4.2-p6-toor_17_dec_2004_01_31 mixed mode): "DestroyJavaVM" prio=5 tid=0x08058c00 nid=0x8058000 waiting on condition [0..bfbfc210] "Java2D Disposer" daemon prio=10 tid=0x0833f200 nid=0x833f800 in Object.wait() [bf822000..bf822d08] at java.lang.Object.wait(Native Method) - waiting on <0x2c452208> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111) - locked <0x2c452208> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127) at sun.java2d.Disposer.run(Disposer.java:100) at java.lang.Thread.run(Thread.java:534) "AWT-EventQueue-0" prio=6 tid=0x0839f000 nid=0x839f200 in Object.wait() [bf863000..bf863d08] at java.lang.Object.wait(Native Method) - waiting on <0x2ca05360> (a java.awt.EventQueue) at java.lang.Object.wait(Object.java:429) at java.awt.EventQueue.getNextEvent(EventQueue.java:339) - locked <0x2ca05360> (a java.awt.EventQueue) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:162) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) From owner-freebsd-java@FreeBSD.ORG Mon Jan 24 11:02:10 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 20B2816A4D8 for ; Mon, 24 Jan 2005 11:02:10 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A76243D48 for ; Mon, 24 Jan 2005 11:02:10 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0OB29Yv018936 for ; Mon, 24 Jan 2005 11:02:09 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0OB29Hd018930 for freebsd-java@freebsd.org; Mon, 24 Jan 2005 11:02:09 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 24 Jan 2005 11:02:09 GMT Message-Id: <200501241102.j0OB29Hd018930@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2005 11:02:10 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2002/05/13] ports/38018 java www/jakarta-tomcat4: make passing of JVM f [2002/05/13] ports/38020 java www/jakarta-tomcat4: stop tomcat via java o [2004/05/01] java/66151 java JBuilderX (sun jvm 1.4.1 builtin) crashes f [2004/07/13] java/68972 java unpack crashes during make install of lin o [2004/07/27] ports/69675 java Eclipse slow typing o [2004/09/22] ports/72014 java Eclipse doesn't work (SigBus 10) if it ha o [2004/10/20] ports/72902 java Make of /usr/ports/java/jdk14 fails with o [2004/12/06] ports/74760 java javavmwrapper messes up amavisd-new o [2004/12/21] ports/75348 java Tomcat port overwrites server.xml config 9 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- s [2003/09/16] ports/56928 java jce-aba port should install to $JAVA_HOME o [2004/08/11] java/70292 java jdk14 compile problem f [2004/11/24] ports/74344 java [proposal] tomcat41ctl: support for passi o [2005/01/05] ports/75852 java [patch] Make java/linux-sun-jdk14 install 4 problems total. From owner-freebsd-java@FreeBSD.ORG Mon Jan 24 12:51:24 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA72E16A4CE for ; Mon, 24 Jan 2005 12:51:24 +0000 (GMT) Received: from melon.pingpong.net (82.milagro.bahnhof.net [195.178.168.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FE7943D5A for ; Mon, 24 Jan 2005 12:51:24 +0000 (GMT) (envelope-from girgen@FreeBSD.org) Received: from localhost (localhost.pingpong.net [127.0.0.1]) by melon.pingpong.net (Postfix) with ESMTP id BA0554AC6D for ; Mon, 24 Jan 2005 13:51:22 +0100 (CET) Received: from melon.pingpong.net ([127.0.0.1]) by localhost (melon.pingpong.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 65952-01-2 for ; Mon, 24 Jan 2005 13:51:22 +0100 (CET) Received: from [192.168.1.187] (81.milagro.bahnhof.net [195.178.168.81]) by melon.pingpong.net (Postfix) with ESMTP id 96AE54AC50 for ; Mon, 24 Jan 2005 13:51:22 +0100 (CET) Date: Mon, 24 Jan 2005 13:51:22 +0100 From: Palle Girgensohn To: freebsd-java@freebsd.org Message-ID: X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at pingpong.net Subject: performance comparison for JDKs on FreeBSD vs. Linux X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2005 12:51:24 -0000 Hi! Has anyone pointers or reflections on Java performance running on FreeBSD compared to running on Linux? Regards, Palle From owner-freebsd-java@FreeBSD.ORG Mon Jan 24 19:10:22 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B79C116A4CF for ; Mon, 24 Jan 2005 19:10:22 +0000 (GMT) Received: from mtiwmhc13.worldnet.att.net (mtiwmhc13.worldnet.att.net [204.127.131.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id A90A043D46 for ; Mon, 24 Jan 2005 19:10:04 +0000 (GMT) (envelope-from duanewinner@worldnet.att.net) Received: from [10.10.100.90] (unknown[216.113.237.29]) by worldnet.att.net (mtiwmhc13) with ESMTP id <2005012419100211300o2jgle> (Authid: duanewinner); Mon, 24 Jan 2005 19:10:02 +0000 Message-ID: <41F54809.5050100@att.net> Date: Mon, 24 Jan 2005 14:10:01 -0500 From: Duane Winner User-Agent: Mozilla Thunderbird 1.0 (X11/20050104) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: no longer need linux compat or linprocfs???? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2005 19:10:22 -0000 Hello, I am going through our in house procecures for installing FreeBSD and apps, as we are about to migrate to 5.3. I just went through our Java chapter, and when I went to build the native JDK 1.4, I forgot to mount linprocfs, which I thought I always needed to do before; but the native JDK seemed to build successfully anyway. Then I went one step further and tried it again by removing Linux compatibility from my FreeBSD box, and native JDK still built with any problems! It seems like all you have to do anymore is copy the bsd-java tarball and the three j2sdk tarballs to /usr/ports/distfiles and then run "portinstall jdk" -- is this correct, or am I spacing out about how we needed set up Linux Compatibility and linprocfs in the past? I just need some confirmation before I update our in-house documentation. Thanks a bunch, Duane From owner-freebsd-java@FreeBSD.ORG Mon Jan 24 19:16:52 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 09A3A16A4CE for ; Mon, 24 Jan 2005 19:16:52 +0000 (GMT) Received: from prosporo.hedron.org (hedron.org [66.11.182.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86CA543D31 for ; Mon, 24 Jan 2005 19:16:51 +0000 (GMT) (envelope-from ean@hedron.org) Received: from www.hedron.org (localhost.hedron.org [127.0.0.1]) by prosporo.hedron.org (Postfix) with ESMTP id 87BCAC14D; Mon, 24 Jan 2005 14:17:50 -0500 (EST) Received: from 216.220.59.169 (SquirrelMail authenticated user ean); by www.hedron.org with HTTP; Mon, 24 Jan 2005 14:17:50 -0500 (EST) Message-ID: <2562.216.220.59.169.1106594270.squirrel@216.220.59.169> In-Reply-To: <41F54809.5050100@att.net> References: <41F54809.5050100@att.net> Date: Mon, 24 Jan 2005 14:17:50 -0500 (EST) From: "Ean Kingston" To: "Duane Winner" User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal cc: freebsd-java@freebsd.org Subject: Re: no longer need linux compat or linprocfs???? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2005 19:16:52 -0000 > Hello, > > I am going through our in house procecures for installing FreeBSD and > apps, as we are about to migrate to 5.3. > > I just went through our Java chapter, and when I went to build the > native JDK 1.4, I forgot to mount linprocfs, which I thought I always > needed to do before; but the native JDK seemed to build successfully > anyway. Then I went one step further and tried it again by removing > Linux compatibility from my FreeBSD box, and native JDK still built with > any problems! You probably upgraded from your older system that had a native JDK. To build Java, you need Java. If you already have an older native JDK that gets used. So, you wouldn't need the Linux compatibility layer. There is no binary distribution of Java for FreeBSD. The Linux binary needs to be installed to build the native one if you don't already have an older JDK installed. The linux binary JDK requires linprocfs and Linux compatibility. > It seems like all you have to do anymore is copy the bsd-java tarball > and the three j2sdk tarballs to /usr/ports/distfiles and then run > "portinstall jdk" -- is this correct, or am I spacing out about how we > needed set up Linux Compatibility and linprocfs in the past? > > I just need some confirmation before I update our in-house documentation. > > Thanks a bunch, > Duane > > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > From owner-freebsd-java@FreeBSD.ORG Mon Jan 24 19:19:12 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B52CD16A4CE; Mon, 24 Jan 2005 19:19:12 +0000 (GMT) Received: from lakermmtao05.cox.net (lakermmtao05.cox.net [68.230.240.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1284C43D41; Mon, 24 Jan 2005 19:19:12 +0000 (GMT) (envelope-from conrads@cox.net) Received: from dolphin.local.net ([68.14.122.164]) by lakermmtao05.cox.net (InterMail vM.6.01.04.00 201-2131-117-20041022) with ESMTP <20050124191909.HCMY16431.lakermmtao05.cox.net@dolphin.local.net>; Mon, 24 Jan 2005 14:19:09 -0500 Received: from dolphin.local.net (localhost.local.net [127.0.0.1]) by dolphin.local.net (8.13.1/8.13.1) with ESMTP id j0OJJ8g7019315; Mon, 24 Jan 2005 13:19:08 -0600 (CST) (envelope-from conrads@cox.net) Date: Mon, 24 Jan 2005 13:19:03 -0600 From: "Conrad J. Sabatier" To: java@freebsd.org Message-ID: <20050124131903.4d8d180d@dolphin.local.net> X-Mailer: Sylpheed-Claws 1.0.0 (GTK+ 1.2.10; amd64-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: Alexey Zelkin cc: freebsd-ports@freebsd.org Subject: java/jdk15 build failure on amd64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2005 19:19:12 -0000 Very strange. The build proceeds along quite nicely (using WITH_LINUX_BOOTSTRAP=yes, of course) for quite some time, then suddenly aborts with: execv(): Bad address Error trying to exec /usr/local/linux-sun-jdk1.4.2/bin/javac. Check if file exists and permissions are set correctly. gmake[3]: *** [.compile.classlist] Error 1 gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/java/java' gmake[2]: *** [all] Error 1 gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/java' gmake[1]: *** [all] Error 1 gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make' gmake: *** [j2se-build] Error 2 *** Error code 2 Stop in /usr/ports/java/jdk15. Just to check, I reinstalled linux_base-8. I do have the Linux Sun JDK 1.4.2 installed, too, of course. This is a repeatable behavior. I've made several attempts to build the port, and get the same result each time. I would have included more context, by the way, but it looked like the nearest sensible point to start from would have been about 700 lines(!) back. :-) -- Conrad J. Sabatier -- "In Unix veritas" From owner-freebsd-java@FreeBSD.ORG Mon Jan 24 19:57:33 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B46416A4CE for ; Mon, 24 Jan 2005 19:57:33 +0000 (GMT) Received: from smtp.housing.ufl.edu (smtp.housing.ufl.edu [128.227.47.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6EC643D48 for ; Mon, 24 Jan 2005 19:57:32 +0000 (GMT) (envelope-from WillS@housing.ufl.edu) Received: (qmail 88468 invoked by uid 98); 24 Jan 2005 14:57:32 -0500 Received: from WillS@housing.ufl.edu by smtp.housing.ufl.edu by uid 1003 with qmail-scanner-1.20 (spamassassin: 3.0.1. Clear:RC:1(128.227.47.18):. Processed in 0.013316 secs); 24 Jan 2005 19:57:32 -0000 X-Qmail-Scanner-Mail-From: WillS@housing.ufl.edu via smtp.housing.ufl.edu X-Qmail-Scanner: 1.20 (Clear:RC:1(128.227.47.18):. Processed in 0.013316 secs) Received: from bragi.housing.ufl.edu (128.227.47.18) by smtp.housing.ufl.edu with (RC4-MD5 encrypted) SMTP; 24 Jan 2005 14:57:32 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.0.6556.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Mon, 24 Jan 2005 14:57:32 -0500 Message-ID: <0E972CEE334BFE4291CD07E056C76ED80504A479@bragi.housing.ufl.edu> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: java/jdk15 build failure on amd64 Thread-Index: AcUCSaTbJok4QQR2Qu6ndlrAEGDaFAABNrkw From: "Will Saxon" To: "Conrad J. Sabatier" , cc: Alexey Zelkin cc: freebsd-ports@freebsd.org Subject: RE: java/jdk15 build failure on amd64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2005 19:57:33 -0000 > -----Original Message----- > From: owner-freebsd-java@freebsd.org > [mailto:owner-freebsd-java@freebsd.org]On Behalf Of Conrad J. Sabatier > Sent: Monday, January 24, 2005 2:19 PM > To: java@freebsd.org > Cc: Alexey Zelkin; freebsd-ports@freebsd.org > Subject: java/jdk15 build failure on amd64 >=20 >=20 > Very strange. The build proceeds along quite nicely (using > WITH_LINUX_BOOTSTRAP=3Dyes, of course) for quite some time,=20 > then suddenly > aborts with: >=20 > execv(): Bad address > Error trying to exec /usr/local/linux-sun-jdk1.4.2/bin/javac. > Check if file exists and permissions are set correctly. > gmake[3]: *** [.compile.classlist] Error 1 > gmake[3]: Leaving directory > `/usr/ports/java/jdk15/work/j2se/make/java/java' > gmake[2]: *** [all] Error 1 > gmake[2]: Leaving directory=20 > `/usr/ports/java/jdk15/work/j2se/make/java' > gmake[1]: *** [all] Error 1 > gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make' > gmake: *** [j2se-build] Error 2 > *** Error code 2 >=20 > Stop in /usr/ports/java/jdk15. >=20 > Just to check, I reinstalled linux_base-8. I do have the=20 > Linux Sun JDK > 1.4.2 installed, too, of course. >=20 > This is a repeatable behavior. I've made several attempts to=20 > build the > port, and get the same result each time. >=20 > I would have included more context, by the way, but it looked like the > nearest sensible point to start from would have been about=20 > 700 lines(!) > back. :-) I am seeing the same problem. It happens directly after processing=20 work/j2se/make/java/nio - every time. I think the next directory it's=20 trying is work/j2se/make/java/java, because the huge javac command is trying to compile a bunch of Reflection class stuff and that's the=20 directory they are in. -Will From owner-freebsd-java@FreeBSD.ORG Mon Jan 24 19:59:04 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 203D216A4CE for ; Mon, 24 Jan 2005 19:59:04 +0000 (GMT) Received: from smtp.housing.ufl.edu (smtp.housing.ufl.edu [128.227.47.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78ED043D1D for ; Mon, 24 Jan 2005 19:59:03 +0000 (GMT) (envelope-from WillS@housing.ufl.edu) Received: (qmail 88609 invoked by uid 98); 24 Jan 2005 14:59:03 -0500 Received: from WillS@housing.ufl.edu by smtp.housing.ufl.edu by uid 1003 with qmail-scanner-1.20 (spamassassin: 3.0.1. Clear:RC:1(128.227.47.18):. Processed in 0.013585 secs); 24 Jan 2005 19:59:03 -0000 X-Qmail-Scanner-Mail-From: WillS@housing.ufl.edu via smtp.housing.ufl.edu X-Qmail-Scanner: 1.20 (Clear:RC:1(128.227.47.18):. Processed in 0.013585 secs) Received: from bragi.housing.ufl.edu (128.227.47.18) by smtp.housing.ufl.edu with (RC4-MD5 encrypted) SMTP; 24 Jan 2005 14:59:03 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.0.6556.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Mon, 24 Jan 2005 14:59:02 -0500 Message-ID: <0E972CEE334BFE4291CD07E056C76ED80504A47A@bragi.housing.ufl.edu> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: java/jdk15 build failure on amd64 Thread-Index: AcUCSaTbJok4QQR2Qu6ndlrAEGDaFAABNrkwAAAg5xA= From: "Will Saxon" To: Subject: RE: java/jdk15 build failure on amd64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2005 19:59:04 -0000 > -----Original Message----- > From: owner-freebsd-java@freebsd.org > [mailto:owner-freebsd-java@freebsd.org]On Behalf Of Will Saxon > Sent: Monday, January 24, 2005 2:58 PM > To: Conrad J. Sabatier; java@freebsd.org > Cc: Alexey Zelkin; freebsd-ports@freebsd.org > Subject: RE: java/jdk15 build failure on amd64 > > > execv(): Bad address > > Error trying to exec /usr/local/linux-sun-jdk1.4.2/bin/javac. > > Check if file exists and permissions are set correctly. > > gmake[3]: *** [.compile.classlist] Error 1 > > gmake[3]: Leaving directory > > `/usr/ports/java/jdk15/work/j2se/make/java/java' > > gmake[2]: *** [all] Error 1 > > gmake[2]: Leaving directory=20 > > `/usr/ports/java/jdk15/work/j2se/make/java' > > gmake[1]: *** [all] Error 1 > > gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make' > > gmake: *** [j2se-build] Error 2 > > *** Error code 2 > >=20 > > Stop in /usr/ports/java/jdk15. > I am seeing the same problem. It happens directly after processing=20 > work/j2se/make/java/nio - every time. I think the next directory it's=20 > trying is work/j2se/make/java/java, because the huge javac command is > trying to compile a bunch of Reflection class stuff and that's the=20 > directory they are in. Which is exactly why they list that in the error messages. Sorry for the noise. -Will From owner-freebsd-java@FreeBSD.ORG Mon Jan 24 21:26:47 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A3AA116A4CF for ; Mon, 24 Jan 2005 21:26:47 +0000 (GMT) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09C7C43D48 for ; Mon, 24 Jan 2005 21:26:45 +0000 (GMT) (envelope-from ml@FreeBSD.org.ua) Received: from phantom.cris.net (ml@localhost [127.0.0.1]) by phantom.cris.net (8.12.10/8.12.10) with ESMTP id j0OLUHqk026319; Mon, 24 Jan 2005 23:30:17 +0200 (EET) (envelope-from ml@FreeBSD.org.ua) Received: (from ml@localhost) by phantom.cris.net (8.12.10/8.12.10/Submit) id j0OLUHDA026318; Mon, 24 Jan 2005 23:30:17 +0200 (EET) (envelope-from ml) Date: Mon, 24 Jan 2005 23:30:17 +0200 From: Alexey Zelkin To: Duane Winner Message-ID: <20050124213017.GA26262@phantom.cris.net> References: <41F54809.5050100@att.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41F54809.5050100@att.net> X-Operating-System: FreeBSD 4.9-STABLE i386 User-Agent: Mutt/1.5.5.1i cc: freebsd-java@freebsd.org Subject: Re: no longer need linux compat or linprocfs???? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2005 21:26:47 -0000 hi, On Mon, Jan 24, 2005 at 02:10:01PM -0500, Duane Winner wrote: > Hello, > > I am going through our in house procecures for installing FreeBSD and > apps, as we are about to migrate to 5.3. > > I just went through our Java chapter, and when I went to build the > native JDK 1.4, I forgot to mount linprocfs, which I thought I always > needed to do before; but the native JDK seemed to build successfully > anyway. Then I went one step further and tried it again by removing > Linux compatibility from my FreeBSD box, and native JDK still built with > any problems! > > It seems like all you have to do anymore is copy the bsd-java tarball > and the three j2sdk tarballs to /usr/ports/distfiles and then run > "portinstall jdk" -- is this correct, or am I spacing out about how we > needed set up Linux Compatibility and linprocfs in the past? > > I just need some confirmation before I update our in-house documentation. There's a patch in jdk14 port, which automatically take care of linprocfs warnings (i.e. sliently gets rid of them without requiring of manual intervention) From owner-freebsd-java@FreeBSD.ORG Mon Jan 24 21:30:24 2005 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A812916A4CE for ; Mon, 24 Jan 2005 21:30:24 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69F5C43D39 for ; Mon, 24 Jan 2005 21:30:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0OLUONU000538 for ; Mon, 24 Jan 2005 21:30:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0OLUOO0000537; Mon, 24 Jan 2005 21:30:24 GMT (envelope-from gnats) Resent-Date: Mon, 24 Jan 2005 21:30:24 GMT Resent-Message-Id: <200501242130.j0OLUOO0000537@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-java@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, me@stefan.haischt.name Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1F9916A4CF for ; Mon, 24 Jan 2005 21:21:19 +0000 (GMT) Received: from mail.terralink.de (mail.tlink.de [217.9.16.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2953843D45 for ; Mon, 24 Jan 2005 21:21:19 +0000 (GMT) (envelope-from me@daniel.stefan.haischt.name) Received: from smtp.abyssworld.de (daniel-s-haischt.biz [84.252.66.2]) by mail.terralink.de (Postfix) with ESMTP id AF9F9BD669 for ; Mon, 24 Jan 2005 22:21:17 +0100 (CET) Received: from abyssone.abyssworld.de (smtp.abyssworld.de [192.168.1.6]) by smtp.abyssworld.de (Postfix) with SMTP id 4D54917C31 for ; Mon, 24 Jan 2005 22:21:16 +0100 (CET) Received: from (smtp.abyssworld.de) [192.168.1.6] by abyssone.abyssworld.de with smtp (geam 0.8.4) for ; Mon, 24 Jan 2005 22:21:16 +0100 Received: from abyssone.abyssworld.de (smtp.abyssworld.de [192.168.1.6]) by smtp.abyssworld.de (Postfix) with ESMTP id B3BCF17880 for ; Mon, 24 Jan 2005 22:21:14 +0100 (CET) Message-Id: <20050124212114.GA79838@abyssone.abyssworld.de> Date: Mon, 24 Jan 2005 22:21:14 +0100 From: "Daniel S. Haischt" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: java/76631: any port linux-*-jdk12 will core dump if using X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: me@stefan.haischt.name List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2005 21:30:24 -0000 >Number: 76631 >Category: java >Synopsis: any port linux-*-jdk12 will core dump if using linux_base-8 >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-java >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 24 21:30:23 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Daniel S. Haischt >Release: FreeBSD 5.3-STABLE i386 >Organization: Daniel S. Haischt IT Consulting >Environment: System: FreeBSD abyssone.abyssworld.de 5.3-STABLE FreeBSD 5.3-STABLE #0: Sun Jan 16 23:38:12 CET 2005 root@:/usr/obj/usr/src/sys/ABYSSONE i386 System: FreeBSD vmware1.abyssworld.de 4.11-STABLE FreeBSD 4.11-STABLE #0: Mon Jan 17 22:06:18 CET 2005 root@:/usr/obj/usr/src/sys/GENERIC i386 Port: linux-sun-jdk-1.2.2.017_2 Port: linux-blackdown-jdk-1.2.2_5 Port: linux_base-8-8.0_4 >Description: If one is running either FreeBSD 5.x or FreeBSD 4.x together with linux_base-8 he won't be able to execute any linux-*-jdk (e.g. linux-sun-jdk-1.2.2.017_2). The reason for this issue is that if one executes for example ... -> /usr/local/linux-sun-jdk1.2.2/bin/java -version he will immediately get a core dump as follows. OUCH: nested memory code, to 1 levels. Abort trap (core dumped) After several investigation cycles I did elaborate that a downgrade to either linux_base-7 or linux_base-6 would solve the issue. Because of the just described issue it is not possible, for example, to compile the native jdk-1.2 for FreeBSD because it depends on linux-jdk1.2. >How-To-Repeat: Install either FreeBSD 4.x or FreeBSD 5.x together with linux_base-8. Additionally you have to install on of the following linux jdks to reproduce the core dump. * linux-sun-jdk-1.2.2.017_2 * linux-blackdown-jdk-1.2.2_5 >Fix: Deinstall linux_base-8 if possible and install linux_base-7 or linux_base-6. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-java@FreeBSD.ORG Tue Jan 25 03:14:11 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3796216A4CE for ; Tue, 25 Jan 2005 03:14:11 +0000 (GMT) Received: from lakermmtao11.cox.net (lakermmtao11.cox.net [68.230.240.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7727443D1F for ; Tue, 25 Jan 2005 03:14:10 +0000 (GMT) (envelope-from conrads@cox.net) Received: from dolphin.local.net ([68.14.122.164]) by lakermmtao11.cox.net (InterMail vM.6.01.04.00 201-2131-117-20041022) with ESMTP id <20050125031409.TZHO1657.lakermmtao11.cox.net@dolphin.local.net>; Mon, 24 Jan 2005 22:14:09 -0500 Received: from dolphin.local.net (localhost.local.net [127.0.0.1]) by dolphin.local.net (8.13.1/8.13.1) with ESMTP id j0P3E2OI032372; Mon, 24 Jan 2005 21:14:07 -0600 (CST) (envelope-from conrads@cox.net) Date: Mon, 24 Jan 2005 21:13:57 -0600 From: "Conrad J. Sabatier" To: Adam VanderHook Message-ID: <20050124211357.7a100df4@dolphin.local.net> In-Reply-To: <20050121172435.GP703@regen.bandwidth-junkies.net> References: <20050121172435.GP703@regen.bandwidth-junkies.net> X-Mailer: Sylpheed-Claws 1.0.0 (GTK+ 1.2.10; amd64-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-java@freebsd.org Subject: Re: JDK 1.5 Issue X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2005 03:14:11 -0000 On Fri, 21 Jan 2005 12:24:36 -0500, Adam VanderHook wrote: > I have only teste this with PfPro (pfpro.sf.net), but when working > with JTables I cannot backspace/delete, tab, or press enter. Using > accelerators like CTRL+N still work though. Despite these problems > nothing is being reported to the console. I've noticed the same problem in Frost (freenet message boards/file sharing app). This is on the i386 platform, 5.3-STABLE, on an AMD Athlon processor. -- Conrad J. Sabatier -- "In Unix veritas" From owner-freebsd-java@FreeBSD.ORG Tue Jan 25 11:20:23 2005 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C939E16A4CE for ; Tue, 25 Jan 2005 11:20:23 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8037343D3F for ; Tue, 25 Jan 2005 11:20:23 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0PBKN6T037085 for ; Tue, 25 Jan 2005 11:20:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0PBKNh6037084; Tue, 25 Jan 2005 11:20:23 GMT (envelope-from gnats) Resent-Date: Tue, 25 Jan 2005 11:20:23 GMT Resent-Message-Id: <200501251120.j0PBKNh6037084@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-java@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, leafy Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1FB716A4CE for ; Tue, 25 Jan 2005 11:12:35 +0000 (GMT) Received: from seed.net.tw (sn13.seed.net.tw [139.175.54.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 614CC43D39 for ; Tue, 25 Jan 2005 11:12:35 +0000 (GMT) (envelope-from leafy@leafy.idv.tw) Received: from [203.70.98.194] (port=62768 helo=chihiro.leafy.idv.tw) by seed.net.tw with esmtp (Seednet 4.23:1) id 1CtOcc-000Mqt-Ay for FreeBSD-gnats-submit@freebsd.org; Tue, 25 Jan 2005 19:12:34 +0800 Received: from localhost (localhost [127.0.0.1]) by chihiro.leafy.idv.tw (Postfix) with ESMTP id B45F537 for ; Tue, 25 Jan 2005 19:12:33 +0800 (CST) Received: from chihiro.leafy.idv.tw ([127.0.0.1]) by localhost (chihiro.leafy.idv.tw [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00547-04 for ; Tue, 25 Jan 2005 19:12:10 +0800 (CST) Received: by chihiro.leafy.idv.tw (Postfix, from userid 1000) id 1A2D31B4; Tue, 25 Jan 2005 19:12:10 +0800 (CST) Message-Id: <20050125111210.1A2D31B4@chihiro.leafy.idv.tw> Date: Tue, 25 Jan 2005 19:12:10 +0800 (CST) From: leafy To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: java/76658: font.properties actual font file cannot point to a symlink X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: leafy List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2005 11:20:23 -0000 >Number: 76658 >Category: java >Synopsis: font.properties actual font file cannot point to a symlink >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-java >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 25 11:20:23 GMT 2005 >Closed-Date: >Last-Modified: >Originator: leafy >Release: FreeBSD 6.0-CURRENT i386 >Organization: >Environment: System: FreeBSD chihiro.leafy.idv.tw 6.0-CURRENT FreeBSD 6.0-CURRENT #9: Sat Jan 22 17:34:26 CST 2005 root@chihiro.leafy.idv.tw:/usr/obj/usr/src/sys/CHIHIRO i386 java version "1.4.2-p7" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-p7-root_07_jan_2005_16_18) Java HotSpot(TM) Client VM (build 1.4.2-p7-root_07_jan_2005_16_18, mixed mode) >Description: In ${JDK_HOME}/lib/font.properties.zh_TW (or any other files in this case), the last line designating the actual path to the font file cannot be a symlink >How-To-Repeat: Just change the last line to point to a symlink. (I had a symlinked /usr/local) >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-java@FreeBSD.ORG Tue Jan 25 18:37:32 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E613416A4CE for ; Tue, 25 Jan 2005 18:37:32 +0000 (GMT) Received: from mtiwmhc11.worldnet.att.net (mtiwmhc11.worldnet.att.net [204.127.131.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA5DA43D3F for ; Tue, 25 Jan 2005 18:37:25 +0000 (GMT) (envelope-from dwinner-lists@worldnet.att.net) Received: from [10.10.100.90] (unknown[216.113.237.29]) by worldnet.att.net (mtiwmhc11) with ESMTP id <2005012518372211100ru4iue> (Authid: duanewinner); Tue, 25 Jan 2005 18:37:23 +0000 Message-ID: <41F691DE.5090407@att.net> Date: Tue, 25 Jan 2005 13:37:18 -0500 From: Duane Winner User-Agent: Mozilla Thunderbird 1.0 (X11/20050104) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alexey Zelkin References: <41F54809.5050100@att.net> <20050124213017.GA26262@phantom.cris.net> In-Reply-To: <20050124213017.GA26262@phantom.cris.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: Duane Winner cc: freebsd-java@freebsd.org Subject: Re: no longer need linux compat or linprocfs???? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2005 18:37:33 -0000 Ah yes, Alexey Zelkin wrote: >hi, > >On Mon, Jan 24, 2005 at 02:10:01PM -0500, Duane Winner wrote: > > >>Hello, >> >>I am going through our in house procecures for installing FreeBSD and >>apps, as we are about to migrate to 5.3. >> >>I just went through our Java chapter, and when I went to build the >>native JDK 1.4, I forgot to mount linprocfs, which I thought I always >>needed to do before; but the native JDK seemed to build successfully >>anyway. Then I went one step further and tried it again by removing >>Linux compatibility from my FreeBSD box, and native JDK still built with >>any problems! >> >>It seems like all you have to do anymore is copy the bsd-java tarball >>and the three j2sdk tarballs to /usr/ports/distfiles and then run >>"portinstall jdk" -- is this correct, or am I spacing out about how we >>needed set up Linux Compatibility and linprocfs in the past? >> >>I just need some confirmation before I update our in-house documentation. >> >> > >There's a patch in jdk14 port, which automatically take care of >linprocfs warnings (i.e. sliently gets rid of them without requiring >of manual intervention) > > > > I did a dry run again from scratch, and watched the output, I see now that if linux_base-8 is not there, it will add it as a dependency. Then dynamically mount linprocfs when needed, I assume? (although I kept watching mount and dmesg, and I didn't see any indication that linprocfs got mounted during the build). At any rate, it works and this is way cool. Much simpler installation procedures. Thanks. >_______________________________________________ >freebsd-java@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-java >To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > > > From owner-freebsd-java@FreeBSD.ORG Tue Jan 25 18:46:26 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C542D16A4CE for ; Tue, 25 Jan 2005 18:46:26 +0000 (GMT) Received: from mail.vericept.com (mail.vericept.com [65.100.174.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41AB543D31 for ; Tue, 25 Jan 2005 18:46:26 +0000 (GMT) (envelope-from matt.meola@vericept.com) Received: from matt.den-esniff.com ([10.3.1.71]) by mail.vericept.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 25 Jan 2005 11:46:25 -0700 From: Matt Meola To: freebsd-java@freebsd.org Content-Type: text/plain Organization: Vericept Corp. Date: Tue, 25 Jan 2005 11:46:23 -0700 Message-Id: <1106678783.55474.12.camel@matt.den-esniff.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 Jan 2005 18:46:25.0515 (UTC) FILETIME=[2C27ABB0:01C5030E] Subject: JDK 1.5 interesting behavior... X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2005 18:46:27 -0000 I can't get java to run unless I use the absolute path to the executable. I looked through the archives, and saw someone else had this problem back in June of last year, but I didn't see a resolution to the issue... ldconfig -r tells me that /usr/local/jdk1.5.0/jre/lib/i386 is searched, and the shared lib is in that directory. JAVA_HOME is set to /usr/local/jdk1.5.0. Any ideas? # java -version Error: could not find libjava.so Error: could not find Java 2 Runtime Environment. # $JAVA_HOME/bin/java -version java version "1.5.0-p1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-p1-toor_25_jan_2005_09_13) Java HotSpot(TM) Client VM (build 1.5.0-p1-toor_25_jan_2005_09_13, mixed mode) -- Matt Meola Contractor Vericept Corporation 750 West Hampden Avenue, Suite 550 Englewood, Colorado 80110-2163 "Protecting Your Information and Reputation (tm)" tel: (303) 798-1568 fax: (303) 268-0520 www.vericept.com From owner-freebsd-java@FreeBSD.ORG Tue Jan 25 19:50:21 2005 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E9A616A4CE for ; Tue, 25 Jan 2005 19:50:21 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE8B443D2D for ; Tue, 25 Jan 2005 19:50:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0PJo6LP002645 for ; Tue, 25 Jan 2005 19:50:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0PJo6qj002640; Tue, 25 Jan 2005 19:50:06 GMT (envelope-from gnats) Date: Tue, 25 Jan 2005 19:50:06 GMT Message-Id: <200501251950.j0PJo6qj002640@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: Clive Lin Subject: Re: java/76658: font.properties actual font file cannot point to a symlink X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Clive Lin List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2005 19:50:21 -0000 The following reply was made to PR java/76658; it has been noted by GNATS. From: Clive Lin To: leafy Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: java/76658: font.properties actual font file cannot point to a symlink Date: Wed, 26 Jan 2005 03:44:26 +0800 On Tue, Jan 25, 2005 at 07:12:10PM +0800, leafy wrote: > >Description: > In ${JDK_HOME}/lib/font.properties.zh_TW (or any other files in this case), the last line designating the actual path to the font file cannot be a symlink > >How-To-Repeat: > Just change the last line to point to a symlink. (I had a symlinked /usr/local) I also have another note here: Fonts installation procedure under ports/chinese typically will call ttfm.sh, which is actually.. bogus now. May you try cd /usr/X11R6/lib/X11/fonts/TrueType rm fonts.dir* fonts.scale mkfontscale ; mkfontdir xset fp rehash cd /usr/local/jdk1.4.2/demo/applets/Fractal appletviewer example1.html Tricks above always work for me. Big5 encoded Chinese fonts, are displayed correctly. Here are my screen shots: http://twn.tongi.org/goodApplet.png http://twn.tongi.org/goodJavaConsole.png You may also try applets below. The "reset" and "start" button in Chinese characters work perfectly here. http://www.phy.ntnu.edu.tw/java/springForce/index.html http://www.phy.ntnu.edu.tw/java/shm/index.html -- Clive Tong-I Lin | http://tongi.org | PGP KeyID: A008C03E From owner-freebsd-java@FreeBSD.ORG Wed Jan 26 02:30:26 2005 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B453016A4CE for ; Wed, 26 Jan 2005 02:30:26 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97D8343D2D for ; Wed, 26 Jan 2005 02:30:26 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0Q2UQpj049437 for ; Wed, 26 Jan 2005 02:30:26 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0Q2UQQi049436; Wed, 26 Jan 2005 02:30:26 GMT (envelope-from gnats) Date: Wed, 26 Jan 2005 02:30:26 GMT Message-Id: <200501260230.j0Q2UQQi049436@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: "Jiawei Ye" Subject: Re: java/76658: font.properties actual font file cannot point to a symlink X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jiawei Ye List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2005 02:30:26 -0000 The following reply was made to PR java/76658; it has been noted by GNATS. From: "Jiawei Ye" To: , Cc: Subject: Re: java/76658: font.properties actual font file cannot point to a symlink Date: Wed, 26 Jan 2005 10:22:42 +0800 I don't use ttfm.sh actually, they are for XTT and I use FreeType. I use ttmkfdir from the ports collection. 2 worthy notes here: 1. Applets had always worked, it's the standalone JVM that b0rks all the time. http://www.chinatimes.com.tw displayed correct Chinese characters while the SwingSet2 demo displayed blank boxen (JFileChooser demo) 2. Distributied font.properties.zh_TW has the last line pointing to /usr/local/share/fonts/TrueType/bsmi00.ttf. If the path is a symlink, in my case linked to /home/local/share/fonts/TrueType/bsmi00.ttf, the JVM will not find the proper font file and resulted in blank boxen too. So the problem lies in the JVM code either when trying to find the properties file or when trying to locate the actual font file. Regards, Jiawei Ye From owner-freebsd-java@FreeBSD.ORG Wed Jan 26 02:44:41 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 719A816A4CE for ; Wed, 26 Jan 2005 02:44:41 +0000 (GMT) Received: from wildbean.clapper.org (wildbean.clapper.org [216.158.26.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id B00D643D49 for ; Wed, 26 Jan 2005 02:44:40 +0000 (GMT) (envelope-from bmc@clapper.org) Received: from condor.inside.clapper.org (phantom@condor.inside.clapper.org [172.16.87.5]) by wildbean.clapper.org (8.13.1/8.13.1) with ESMTP id j0Q2idCl018325; Tue, 25 Jan 2005 21:44:40 -0500 (EST) Received: from z.inside.clapper.org (z.inside.clapper.org [172.16.87.2]) j0Q2idk9040950; Tue, 25 Jan 2005 21:44:39 -0500 (EST) Message-Id: <200501260244.j0Q2idk9040950@condor.inside.clapper.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 25 Jan 2005 21:44:40 -0500 To: Matt Meola From: Brian Clapper In-Reply-To: <1106678783.55474.12.camel@matt.den-esniff.com> References: <1106678783.55474.12.camel@matt.den-esniff.com> X-Mailer: VM 7.17 under Emacs 21.3.1 X-Face: /perrud9r1.|7j.*=/6)a%vZ$^sBn!P[?+}vWBxd1ps{4hd2ZOw8]u&t';}(kj=x; JpdSF7 1b<*T{.38]wnWl]j/ULRB*49qdsET_/)-siUd7A_n- List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2005 02:44:41 -0000 On 25 January, 2005, at 11:46 (-0700) Matt Meola wrote: > I can't get java to run unless I use the absolute path to the > executable. I looked through the archives, and saw someone else had > this problem back in June of last year, but I didn't see a resolution to > the issue... > > ldconfig -r tells me that /usr/local/jdk1.5.0/jre/lib/i386 is searched, > and the shared lib is in that directory. > > JAVA_HOME is set to /usr/local/jdk1.5.0. > Any ideas? > > # java -version > Error: could not find libjava.so > Error: could not find Java 2 Runtime Environment. > > # $JAVA_HOME/bin/java -version > java version "1.5.0-p1" > Java(TM) 2 Runtime Environment, Standard Edition (build > 1.5.0-p1-toor_25_jan_2005_09_13) > Java HotSpot(TM) Client VM (build 1.5.0-p1-toor_25_jan_2005_09_13, mixed > mode) I'm seeing the same behavior. I saw it with the port as well as the patch-and-build-yourself precursor to the port. My situation is the same as noted above. I'm running on 4.10-RELEASE. FWIW, I have had no trouble at all with the 1.4.2 native JDK; I've been using it for months. Brian Clapper, http://www.clapper.org/bmc/ From owner-freebsd-java@FreeBSD.ORG Wed Jan 26 10:50:30 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68A4716A4CE for ; Wed, 26 Jan 2005 10:50:30 +0000 (GMT) Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8727C43D1D for ; Wed, 26 Jan 2005 10:50:28 +0000 (GMT) (envelope-from eugen@kuzbass.ru) Received: from kuzbass.ru (kost [213.184.65.82])j0QAoQcL089378 for ; Wed, 26 Jan 2005 17:50:26 +0700 (KRAT) (envelope-from eugen@kuzbass.ru) Message-ID: <41F775F0.D2721542@kuzbass.ru> Date: Wed, 26 Jan 2005 17:50:24 +0700 From: Eugene Grosbein Organization: SVZServ X-Mailer: Mozilla 4.8 [en] (Win98; U) X-Accept-Language: ru,en MIME-Version: 1.0 To: java@freebsd.org Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Subject: How to increase java heap size X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2005 10:50:30 -0000 Hi! I use jakarta-tomcat-5.0.29/FreeBSD 5.3-STABLE and need to increase java heap size using JAVA_OPTS="-Xms256M -Xmx512M". Where should I place these flags so that whey will be used and will not be overwritten during upgrades? I tried to create /usr/local/jakarta-tomcat50/bin/setenv.sh but it seems it is not used. Please CC: me, I'm not in a list yet. Eugene Grosbein From owner-freebsd-java@FreeBSD.ORG Wed Jan 26 20:51:58 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B20D716A4CE for ; Wed, 26 Jan 2005 20:51:58 +0000 (GMT) Received: from wildbean.clapper.org (wildbean.clapper.org [216.158.26.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BE2643D53 for ; Wed, 26 Jan 2005 20:51:58 +0000 (GMT) (envelope-from bmc@clapper.org) Received: from condor.inside.clapper.org (phantom@condor.inside.clapper.org [172.16.87.5]) by wildbean.clapper.org (8.13.1/8.13.1) with ESMTP id j0QKpv4O022212 for ; Wed, 26 Jan 2005 15:51:57 -0500 (EST) Received: from z.inside.clapper.org (z.inside.clapper.org [172.16.87.2]) j0QKputL045404 for ; Wed, 26 Jan 2005 15:51:57 -0500 (EST) Message-Id: <200501262051.j0QKputL045404@condor.inside.clapper.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 26 Jan 2005 15:51:57 -0500 To: freebsd-java@freebsd.org From: Brian Clapper X-Mailer: VM 7.17 under Emacs 21.3.1 X-Face: /perrud9r1.|7j.*=/6)a%vZ$^sBn!P[?+}vWBxd1ps{4hd2ZOw8]u&t';}(kj=x; JpdSF7 1b<*T{.38]wnWl]j/ULRB*49qdsET_/)-siUd7A_n- prevents JDK 1.5.0p1 from building X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2005 20:51:58 -0000 Thought this might be worth mentioning: I'm attempting to build the 1.5.0 port on 4.10-RELEASE. The build routinely fails during compilation. The first file affected is "[...]/work/jdk15/j2se/src/share/native/sun/awt/medialib/mlib_ImageAffline.c", but other files also fail to compile. The reason: Those source files indirectly attempt to include , but 4.10-RELEASE doesn't have that file. To get around this problem, I either have to modify the patchset or install a stub version of . I elected to use a stub , which looks like this: ---------- #ifndef _STDINT_H #define _STDINT_H 1 #include #include #endif /* stdint.h */ ---------- With that file installed in /usr/include, the build completes fine. I did not have this problem when using the experimental patchset that came out just prior to patchset 1. Diff'ing the two patchsets, it looks as though the dependence on was introduced in patchset 1. Brian Clapper, http://www.clapper.org/bmc/ Majority: That quality that distinguishes a crime from a law. From owner-freebsd-java@FreeBSD.ORG Thu Jan 27 06:05:49 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91A3316A4CE for ; Thu, 27 Jan 2005 06:05:49 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id E668E43D2D for ; Thu, 27 Jan 2005 06:05:48 +0000 (GMT) (envelope-from leafy7382@gmail.com) Received: by rproxy.gmail.com with SMTP id 40so202843rnz for ; Wed, 26 Jan 2005 22:05:46 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=ZLZPK2LIh/QcR9jZ//JYKCzzhX5NqpG2HDe0/q+B8aHiC4H8Tfd+NTxUpkEfT0+2bB8lsQorkUuCW7up0RfVjm3YJqeJ6gJDEwkRBqmYHMR76Xu/cFdbWvcPXpusU2K9dX74pb32htjTCtBwu+35/Xy2ZeGMp1tKv60hJjjMJ/g= Received: by 10.38.8.48 with SMTP id 48mr191329rnh; Wed, 26 Jan 2005 22:05:46 -0800 (PST) Received: by 10.38.8.79 with HTTP; Wed, 26 Jan 2005 22:05:46 -0800 (PST) Message-ID: Date: Thu, 27 Jan 2005 14:05:46 +0800 From: Jiawei Ye To: freebsd-java@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Which javac is being used? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jiawei Ye List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2005 06:05:49 -0000 Hi, On my server, both JDK14 and JDK15 are installed. I can select proper javavm by setting $JAVA_HOME, but only the 1.4 javac is used when I invoke 'javac'. leafy@chihiro:~$ java -version java version "1.5.0-p1" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-p1-leafy_26_jan_2005_23_55) Java HotSpot(TM) Client VM (build 1.5.0-p1-leafy_26_jan_2005_23_55, mixed mode) leafy@chihiro:~$ javac -verbose UI.java [parsing started UI.java] [parsing completed 83ms] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/awt/Font.class)] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/awt/GraphicsEnvironment.class)] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/util/Iterator.class)] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/util/Properties.class)] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(javax/swing/UIDefaults.class)] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(javax/swing/UIManager.class)] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(javax/swing/UnsupportedLookAndFeelException.class)] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(javax/swing/plaf/FontUIResource.class)] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/lang/Object.class)] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/lang/String.class)] [checking UI] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/util/Hashtable.class)] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/util/Dictionary.class)] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/util/Map.class)] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/io/Serializable.class)] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/lang/Comparable.class)] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/lang/CharSequence.class)] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/text/CharacterIterator.class)] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/lang/System.class)] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/io/PrintStream.class)] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/io/FilterOutputStream.class)] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/io/OutputStream.class)] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/lang/StringBuffer.class)] [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/util/Locale.class)] [wrote UI.class] [total 660ms] Is there something I've missed? Jiawei Ye -- "Without the userland, the kernel is useless." --inspired by The Tao of Programming From owner-freebsd-java@FreeBSD.ORG Thu Jan 27 11:57:47 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F09D16A4D1 for ; Thu, 27 Jan 2005 11:57:47 +0000 (GMT) Received: from smtphost.cis.strath.ac.uk (smtphost.cis.strath.ac.uk [130.159.196.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D94243D41 for ; Thu, 27 Jan 2005 11:57:46 +0000 (GMT) (envelope-from chodgins@cis.strath.ac.uk) Received: from [192.168.0.4] (chrishodgins.force9.co.uk [84.92.20.141]) j0RBuekX008852; Thu, 27 Jan 2005 11:56:41 GMT Message-ID: <41F8D80D.9090500@cis.strath.ac.uk> Date: Thu, 27 Jan 2005 12:01:17 +0000 From: Chris Hodgins User-Agent: Mozilla Thunderbird 1.0 (X11/20050113) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jiawei Ye References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CIS-MailScanner-Information: Please contact support@cis.strath.ac.uk for more information X-CIS-MailScanner: Found to be clean X-CIS-MailScanner-SpamCheck: not spam, SpamAssassin (score=0, required 6) X-CIS-MailScanner-From: chodgins@cis.strath.ac.uk cc: freebsd-java@freebsd.org Subject: Re: Which javac is being used? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2005 11:57:47 -0000 Jiawei Ye wrote: > Hi, > > On my server, both JDK14 and JDK15 are installed. I can select proper > javavm by setting $JAVA_HOME, but only the 1.4 javac is used when I > invoke 'javac'. > > leafy@chihiro:~$ java -version > java version "1.5.0-p1" > Java(TM) 2 Runtime Environment, Standard Edition (build > 1.5.0-p1-leafy_26_jan_2005_23_55) > Java HotSpot(TM) Client VM (build 1.5.0-p1-leafy_26_jan_2005_23_55, mixed mode) > leafy@chihiro:~$ javac -verbose UI.java > [parsing started UI.java] > [parsing completed 83ms] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/awt/Font.class)] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/awt/GraphicsEnvironment.class)] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/util/Iterator.class)] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/util/Properties.class)] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(javax/swing/UIDefaults.class)] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(javax/swing/UIManager.class)] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(javax/swing/UnsupportedLookAndFeelException.class)] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(javax/swing/plaf/FontUIResource.class)] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/lang/Object.class)] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/lang/String.class)] > [checking UI] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/util/Hashtable.class)] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/util/Dictionary.class)] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/util/Map.class)] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/io/Serializable.class)] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/lang/Comparable.class)] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/lang/CharSequence.class)] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/text/CharacterIterator.class)] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/lang/System.class)] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/io/PrintStream.class)] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/io/FilterOutputStream.class)] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/io/OutputStream.class)] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/lang/StringBuffer.class)] > [loading /usr/local/jdk1.4.2/jre/lib/rt.jar(java/util/Locale.class)] > [wrote UI.class] > [total 660ms] > > > Is there something I've missed? > > Jiawei Ye Try setting JAVA_VERSION=1.5 Chris From owner-freebsd-java@FreeBSD.ORG Thu Jan 27 18:28:55 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 76F0516A4CE for ; Thu, 27 Jan 2005 18:28:55 +0000 (GMT) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B85F43D2D for ; Thu, 27 Jan 2005 18:28:55 +0000 (GMT) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id 119275643A; Fri, 28 Jan 2005 07:28:54 +1300 (NZDT) Date: Fri, 28 Jan 2005 07:28:54 +1300 From: Jonathan Chen To: Jiawei Ye Message-ID: <20050127182853.GA94844@osiris.chen.org.nz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i cc: freebsd-java@freebsd.org Subject: Re: Which javac is being used? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2005 18:28:55 -0000 On Thu, Jan 27, 2005 at 02:05:46PM +0800, Jiawei Ye wrote: > Hi, > > On my server, both JDK14 and JDK15 are installed. I can select proper > javavm by setting $JAVA_HOME, but only the 1.4 javac is used when I > invoke 'javac'. The /usr/local/bin/java shell script inspects /usr/ports/bsd.java.mk for the default JVM to use. You have to set the JAVA_VERSION environment variable to force it to pick the one you want to use. Cheers. -- Jonathan Chen ---------------------------------------------------------------------- Power corrupts, Absolute Power is pretty neat From owner-freebsd-java@FreeBSD.ORG Thu Jan 27 19:17:14 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA25F16A4CE for ; Thu, 27 Jan 2005 19:17:14 +0000 (GMT) Received: from drop.bsdchat.com (drop.bsdchat.com [209.237.225.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABA6A43D3F for ; Thu, 27 Jan 2005 19:17:14 +0000 (GMT) (envelope-from clive@tongi.org) Received: from CARTIER (drag.bsdchat.com [209.237.225.37]) by drop.bsdchat.com (8.13.1/8.13.1) with SMTP id j0RJFVBo058337; Thu, 27 Jan 2005 19:15:32 GMT (envelope-from clive@tongi.org) Received: (nullmailer pid 4022 invoked by uid 1000); Thu, 27 Jan 2005 19:17:08 -0000 Date: Fri, 28 Jan 2005 03:17:08 +0800 From: Clive Lin To: Jiawei Ye Message-ID: <20050127191708.GA996@tongi.org> References: <200501260230.j0Q2UQQi049436@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200501260230.j0Q2UQQi049436@freefall.freebsd.org> X-PGP-key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xA008C03E User-Agent: Mutt/1.5.6i cc: freebsd-java@freebsd.org Subject: Re: java/76658: font.properties actual font file cannot point to a symlink X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2005 19:17:15 -0000 On Wed, Jan 26, 2005 at 02:30:26AM +0000, Jiawei Ye wrote: > I don't use ttfm.sh actually, they are for XTT and I use FreeType. I use > ttmkfdir from the ports collection. So did I. In xorg, XTT is deprecated. I'd say that ttmkfdir isn't actually required either. Xorg can just handle it well. At this point, those port still use ttfm.sh during installation should be fixed. > 2 worthy notes here: > > 1. Applets had always worked, it's the standalone JVM that b0rks all the > time. http://www.chinatimes.com.tw displayed correct Chinese characters > while the SwingSet2 demo displayed blank boxen (JFileChooser demo) I'm not sure if we're talking about the same root cause, but the result is same.. :p Wrong fonts.dir and symbolic linked font both result in same problem. > 2. Distributied font.properties.zh_TW has the last line pointing to > /usr/local/share/fonts/TrueType/bsmi00.ttf. If the path is a symlink, in my > case linked to /home/local/share/fonts/TrueType/bsmi00.ttf, the JVM will not The bsmi00.ttf is part of zh-arphicttf port, which doesn't try to create the symbolic link. As to fonts installed via ports and jdk installed via ports, it should work just fine as-is. To my best knowledge we have 2 possible solutions here: 1. fix jvm . 2. get rid of truetype font dependency in font.properties.zh_TW. I can't help with #1. As to #2, it "should" be possible. > find the proper font file and resulted in blank boxen too. So the problem > lies in the JVM code either when trying to find the properties file or when > trying to locate the actual font file. Cheers, -- Clive Tong-I Lin | http://tongi.org | PGP KeyID: A008C03E From owner-freebsd-java@FreeBSD.ORG Thu Jan 27 20:02:09 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B0A516A4CE for ; Thu, 27 Jan 2005 20:02:09 +0000 (GMT) Received: from arabica.esil.univ-mrs.fr (arabica.esil.univ-mrs.fr [139.124.41.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF81543D48 for ; Thu, 27 Jan 2005 20:02:07 +0000 (GMT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from arabica.esil.univ-mrs.fr (localhost.esil.univ-mrs.fr [127.0.0.1])j0RK26iN011647 for ; Thu, 27 Jan 2005 21:02:06 +0100 (CET) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: (from rv@localhost) by arabica.esil.univ-mrs.fr (8.13.1/8.13.1/Submit) id j0RK265t011646 for freebsd-java@FreeBSD.ORG; Thu, 27 Jan 2005 21:02:06 +0100 (CET) (envelope-from herve.quiroz@esil.univ-mrs.fr) X-Authentication-Warning: arabica.esil.univ-mrs.fr: rv set sender to herve.quiroz@esil.univ-mrs.fr using -f Date: Thu, 27 Jan 2005 21:02:06 +0100 From: Herve Quiroz To: freebsd-java@FreeBSD.ORG Message-ID: <20050127200206.GA11547@arabica.esil.univ-mrs.fr> Mail-Followup-To: freebsd-java@FreeBSD.ORG References: <20050127182853.GA94844@osiris.chen.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050127182853.GA94844@osiris.chen.org.nz> User-Agent: Mutt/1.4.2.1i Subject: Re: Which javac is being used? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2005 20:02:09 -0000 On Fri, Jan 28, 2005 at 07:28:54AM +1300, Jonathan Chen wrote: > On Thu, Jan 27, 2005 at 02:05:46PM +0800, Jiawei Ye wrote: > > On my server, both JDK14 and JDK15 are installed. I can select proper > > javavm by setting $JAVA_HOME, but only the 1.4 javac is used when I > > invoke 'javac'. > > The /usr/local/bin/java shell script inspects /usr/ports/bsd.java.mk > for the default JVM to use. You have to set the JAVA_VERSION > environment variable to force it to pick the one you want to use. That's true. But what intrigues me is the fact that both 'java' and 'javac' should use the same logic to pick a JDK (afterall they are both symlinks of the same 'javavm' file). Hence whichever JDK is chosen, 'javac -version' and 'java -version' would output the same version number... I'll try to see if I can reproduce the same error as you Jiawey, once the java/jdk15 build is done on my box (if I don't lack free HD space until then). But in the mean time, here are my quick two cents: Is it possible that you use an alias javac->jikes with some JIKES_BOOTCLASSPATH (or equivalent) set to /usr/local/jdk1.4.2/... Jiawei, could you try running the same commands but undefining JAVA_* beforehand (and just with JAVA_VERSION=1.5 as suggested by Jonathan)? Herve From owner-freebsd-java@FreeBSD.ORG Thu Jan 27 22:42:01 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D653616A4CE for ; Thu, 27 Jan 2005 22:42:01 +0000 (GMT) Received: from smtphost.cis.strath.ac.uk (smtphost.cis.strath.ac.uk [130.159.196.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BED043D5C for ; Thu, 27 Jan 2005 22:42:01 +0000 (GMT) (envelope-from chodgins@cis.strath.ac.uk) Received: from [192.168.0.4] (chrishodgins.force9.co.uk [84.92.20.141]) j0RMfokX020770 for ; Thu, 27 Jan 2005 22:41:51 GMT Message-ID: <41F96F42.8070702@cis.strath.ac.uk> Date: Thu, 27 Jan 2005 22:46:26 +0000 From: Chris Hodgins User-Agent: Mozilla Thunderbird 1.0 (X11/20050113) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CIS-MailScanner-Information: Please contact support@cis.strath.ac.uk for more information X-CIS-MailScanner: Found to be clean X-CIS-MailScanner-SpamCheck: not spam, SpamAssassin (score=0, required 6) X-CIS-MailScanner-From: chodgins@cis.strath.ac.uk Subject: Java3D X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2005 22:42:02 -0000 Trying to run the example applications in the Java3D demo folder. I have run them with jdk1.5 but I get: $ java HelloUniverse Exception in thread "Thread-1" java.lang.UnsatisfiedLinkError: no J3D in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) at java.lang.Runtime.loadLibrary0(Runtime.java:822) at java.lang.System.loadLibrary(System.java:992) at javax.media.j3d.MasterControl$22.run(MasterControl.java:894) at java.security.AccessController.doPrivileged(Native Method) at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:891) at javax.media.j3d.VirtualUniverse.(VirtualUniverse.java:229) at HelloUniverse.init(HelloUniverse.java:94) at com.sun.j3d.utils.applet.MainFrame.run(MainFrame.java:262) at java.lang.Thread.run(Thread.java:595) $ ls /usr/local/jdk1.5.0/jre/lib/ext/ dnsns.jar j3dcore.jar localedata.jar vecmath.jar j3audio.jar j3dutils.jar sunjce_provider.jar How does setting JAVA_VERSION effect the CLASSPATH used? Even if I change it to point at the 1.5.0 libraries it has the same message. Anything I can do to fix this? If there is any testing that I can do to help in general, please let me know. Does Eclipse support 1.5 yet? Thanks Chris From owner-freebsd-java@FreeBSD.ORG Fri Jan 28 00:33:07 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 298DC16A4CE for ; Fri, 28 Jan 2005 00:33:07 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9999E43D45 for ; Fri, 28 Jan 2005 00:33:06 +0000 (GMT) (envelope-from leafy7382@gmail.com) Received: by rproxy.gmail.com with SMTP id 40so277690rnz for ; Thu, 27 Jan 2005 16:33:06 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=f0pw7KeSPVLuZfdyrKBRnND/3IpXnJ1DQZuaq4YFqfFZ4/2HNoafxA/su5LF2eKpvNddz1AqtwwKu7vXi86anPnFlrgR7OTz5yOi9rF9JUhyBRYk27mNljEhgSl0M0fM3EZhnQdQraiKvq4T8DeHPA3Kxxd2fSJeeguK8CfFbxE= Received: by 10.38.19.34 with SMTP id 34mr46898rns; Thu, 27 Jan 2005 16:33:06 -0800 (PST) Received: by 10.38.8.79 with HTTP; Thu, 27 Jan 2005 16:33:06 -0800 (PST) Message-ID: Date: Fri, 28 Jan 2005 08:33:06 +0800 From: Jiawei Ye To: freebsd-java@freebsd.org In-Reply-To: <20050127200206.GA11547@arabica.esil.univ-mrs.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20050127182853.GA94844@osiris.chen.org.nz> <20050127200206.GA11547@arabica.esil.univ-mrs.fr> Subject: Re: Which javac is being used? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jiawei Ye List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jan 2005 00:33:07 -0000 On Thu, 27 Jan 2005 21:02:06 +0100, Herve Quiroz wrote: > But what intrigues me is the fact that both 'java' and 'javac' should > use the same logic to pick a JDK (afterall they are both symlinks of > the same 'javavm' file). Hence whichever JDK is chosen, 'javac -version' > and 'java -version' would output the same version number... > > I'll try to see if I can reproduce the same error as you Jiawey, once > the java/jdk15 build is done on my box (if I don't lack free HD space > until then). > > But in the mean time, here are my quick two cents: > > Is it possible that you use an alias javac->jikes with some > JIKES_BOOTCLASSPATH (or equivalent) set to /usr/local/jdk1.4.2/... > > Jiawei, could you try running the same commands but undefining JAVA_* > beforehand (and just with JAVA_VERSION=1.5 as suggested by Jonathan)? > > Herve I found the problem. If I set JAVA_HOME=${localbase}/jdk1.5.0/jre, 'java' would run jdk1.5.0 vm but 'javac' picks up the wrong version from bsd.port.mk since the executable isn't found in ${JAVA_HOME/bin. Setting JAVA_VERSION=1.5 works. Regards, Jiawei Ye -- "Without the userland, the kernel is useless." --inspired by The Tao of Programming From owner-freebsd-java@FreeBSD.ORG Sat Jan 29 09:34:11 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C374016A4CE for ; Sat, 29 Jan 2005 09:34:11 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6294343D3F for ; Sat, 29 Jan 2005 09:34:11 +0000 (GMT) (envelope-from java.public@gmail.com) Received: by rproxy.gmail.com with SMTP id 40so379892rnz for ; Sat, 29 Jan 2005 01:34:10 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=ANNZPhViP8tEvEMJJVsEJ8yWVm0h353ZJkV4sxxno+Dsa799lUMyBebCyn+XmD6zWedEPOEPv9O+/PSn1tcN7sQ6miAnb72/TSlESFieeBBg7Ij/nInvAUt7mSnv/mk/T8AXTjkmjtMRWxoPwnDiU+EEEx4sDaiKK1IIlupaAFw= Received: by 10.38.8.48 with SMTP id 48mr171264rnh; Sat, 29 Jan 2005 01:34:10 -0800 (PST) Received: by 10.38.8.54 with HTTP; Sat, 29 Jan 2005 01:34:10 -0800 (PST) Message-ID: Date: Sat, 29 Jan 2005 10:34:10 +0100 From: Java News To: freebsd-java@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Switching Tomcat 4 to Tomcat 5 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Java News List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jan 2005 09:34:11 -0000 Hi, Some ports as eg. jetspeed or axis requires Tomcat 4 to install, I have already installed Tomcat but 5.0 version. So when I make a port install of eg. axis this port also installs Tomcat 4.1, which I don't want on my system. What can I do to prevent of installing such dependency and use Tomcat 5 instead? Best regards, Lee From owner-freebsd-java@FreeBSD.ORG Sat Jan 29 19:38:37 2005 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7514216A4D0 for ; Sat, 29 Jan 2005 19:38:37 +0000 (GMT) Received: from quark.rcac.purdue.edu (quark.rcac.purdue.edu [128.210.189.109]) by mx1.FreeBSD.org (Postfix) with ESMTP id 055EF43D5C for ; Sat, 29 Jan 2005 19:38:37 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from quark.rcac.purdue.edu (localhost [127.0.0.1]) j0TJcaHJ066666 for ; Sat, 29 Jan 2005 14:38:36 -0500 (EST) (envelope-from linimon@FreeBSD.org) Date: Sat, 29 Jan 2005 14:38:36 -0500 (EST) Message-Id: <200501291938.j0TJcaHJ066666@quark.rcac.purdue.edu> From: linimon@FreeBSD.org To: java@FreeBSD.org Subject: FreeBSD ports that you maintain which are currently marked forbidden X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jan 2005 19:38:37 -0000 Dear FreeBSD port maintainer: As part of an ongoing effort to reduce the number of problems in the FreeBSD ports system, we are attempting to notify maintainers of ports that are marked as "forbidden" in their Makefiles. Often, these ports are so marked due to security concerns, such as known exploits. An overview of the port, including errors seen on the build farm, is included below. portname: java/linux-blackdown-jdk13 forbidden because: Vulnerabilities in the browser plugin build errors: none. overview: http://portsmon.firepipe.net/portoverview.py?category=java&portname=linux-blackdown-jdk13 portname: java/linux-ibm-jdk13 forbidden because: Vulnerabilities in the browser plugin build errors: none. overview: http://portsmon.firepipe.net/portoverview.py?category=java&portname=linux-ibm-jdk13 If this problem is one that you are already aware of, please accept our apologies and ignore this message. On the other hand, if you no longer wish to maintain this port (or ports), please reply with a message stating that, and accept our thanks for your efforts in the past. Thanks for your efforts to help improve FreeBSD.