From owner-freebsd-questions Thu Jul 10 05:25:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA29306 for questions-outgoing; Thu, 10 Jul 1997 05:25:42 -0700 (PDT) Received: from zeus.gel.usherb.ca (zeus.gel.usherb.ca [132.210.70.7]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id FAA29301 for ; Thu, 10 Jul 1997 05:25:39 -0700 (PDT) Received: from castor.gel.usherb.ca by zeus.gel.usherb.ca (4.1/SMI-4.1) id AA11415; Thu, 10 Jul 97 08:25:31 EDT Received: by castor.gel.usherb.ca (SMI-8.6/SMI-SVR4) id IAA19218; Thu, 10 Jul 1997 08:25:30 -0400 Date: Thu, 10 Jul 1997 08:25:30 -0400 (EDT) From: "Alex.Boisvert" To: Jesse D Troy Cc: freebsd-questions@FreeBSD.ORG Subject: Re: About Java. In-Reply-To: <33C40A3B.41C67EA6@vt.edu> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Did you have to do anyhing special (other than set up Linux emulation) > to get jdk1.1.1 to work? I have Linux emulation working (it works with > other software such as Adobe Acrobat Reader) and I got the Linux version > of JDK 1.1.1. After untarring the jdk,I try to run any of the > executables (javac, java, etc.) and I have these problems: > > 1) I have to type ./ before the executable name (even though > the current directory is in my path and I can run any other > binary that is in the current directory) > 2) I get the following message when I run javac: > type: not found > [: syntax error > usage: dirname path > arch: not found > javac was not found in /../bin//green_threads/javac > When you execute "java" or "javac", these file are actually symbolic links to a file called ".java-wrapper". This is a shell script that configures the environment, among other things. The problem is that this shell script invokes a few system-related binaries like "uname" which have different parameters on FreeBSD than on Linux. You can just arrange the shell script to use the proper parameters and you won't get these anoying messages. Regards, Alex. PS: The Linux JDK 1.1.1 (v3) still has some problems running on FreeBSD. Sometimes, where resizing a window, the Java VM hangs. I'm looking into this right now.