From owner-freebsd-ports Fri Jun 16 0:40:12 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id CB0A937BD94 for ; Fri, 16 Jun 2000 00:40:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id AAA37113; Fri, 16 Jun 2000 00:40:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from ripspost.aist.go.jp (ripspost.aist.go.jp [150.29.251.14]) by hub.freebsd.org (Postfix) with ESMTP id CFC3337BD28 for ; Fri, 16 Jun 2000 00:31:13 -0700 (PDT) (envelope-from akr@m17n.org) Received: from rpsmtp1.aist.go.jp (rpdgate1.aist.go.jp [150.29.254.30]) by ripspost.aist.go.jp (8.9.3/3.7W) with ESMTP id QAA06215 for ; Fri, 16 Jun 2000 16:31:11 +0900 (JST) Received: from eccu1-1.etl.go.jp (localhost [127.0.0.1]) by rpsmtp1.aist.go.jp (8.9.3/3.7W) with ESMTP id QAA19533 for ; Fri, 16 Jun 2000 16:31:11 +0900 (JST) Received: from flux.m17n.org (dhcpea043 [150.29.203.233]) by eccu1-1.etl.go.jp (8.9.3/3.7W-ETL-MASTER) with ESMTP id QAA09805 for ; Fri, 16 Jun 2000 16:31:10 +0900 (JST) Received: by flux.m17n.org (Postfix, from userid 23483) id 0D26227F; Fri, 16 Jun 2000 16:31:12 +0900 (JST) Message-Id: <20000616073112.0D26227F@flux.m17n.org> Date: Fri, 16 Jun 2000 16:31:12 +0900 (JST) From: akr@m17n.org Reply-To: akr@m17n.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/19330: strange behaviour of linux-jdk-1.2.2 (or linux emulation?). Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19330 >Category: ports >Synopsis: java interpreter may fail to detect class on current directory. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jun 16 00:40:04 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Tanaka Akira >Release: FreeBSD 4.0-RELEASE i386 >Organization: m17n >Environment: % pkg_info linux-jdk-1.2.2 Information for linux-jdk-1.2.2: Comment: Blackdown Linux Java Developers Kit 1.2.2 Description: Blackdown Linux Java Developers Kit 1.2.2 % uname -a FreeBSD flux 4.0-RELEASE FreeBSD 4.0-RELEASE #0: Wed May 24 00:03:30 JST 2000 akr@flux.m17n.org:/usr/src/sys/compile/AKR i386 >Description: The interpreter `java' cannot find class file on a current directory after `mkdir test_directory; rmdir test_directory'. I think mkdir/rmdir shouldn't affect >How-To-Repeat: The test program is follows. % cat Test.java class Test { public static void main(String[] argv) { System.out.println("Hello world."); } } Java compilere and interpreter is follows. % which javac /usr/local/linux-jdk1.2.2/bin/javac % which java /usr/local/linux-jdk1.2.2/bin/java Make sure that CLASSPATH is not set. % unset CLASSPATH Compile the test program. % javac Test.java Run the test program. No problem. % java Test Hello world. Create some directory and remove it. It shouldn't cause any problem. % mkdir test_directory; rmdir test_directory Run the test program again. The interpreter cannot find the class `Test'. % java Test Exception in thread "main" java.lang.NoClassDefFoundError: Test zsh: exit 1 java Test Run the test program again with the option -cp. It works well. % java -cp `pwd` Test Hello world. Run the test program again without the option -cp. It works well again. % java Test Hello world. >Fix: I cannot suppose the reason of this behaviour... >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message