From owner-freebsd-java Mon Mar 10 15:25:21 2003 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 5713437B401 for ; Mon, 10 Mar 2003 15:25:19 -0800 (PST) Received: from misery.sdf.com (misery.sdf.com [207.200.153.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F40143F85 for ; Mon, 10 Mar 2003 15:25:17 -0800 (PST) (envelope-from tom@sdf.com) Received: from tom (helo=localhost) by misery.sdf.com with local-esmtp (Exim 2.12 #1) id 18sV9I-000635-00; Mon, 10 Mar 2003 13:49:32 -0800 Date: Mon, 10 Mar 2003 13:49:20 -0800 (PST) From: Tom Samplonius To: Fernan Aguero Cc: java@freebsd.org Subject: Re: can several java distributions coexist? In-Reply-To: <20030310184209.GD53332@iib.unsam.edu.ar> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, 10 Mar 2003, Fernan Aguero wrote: > Hi! > > I have for some time two jdk131 installations, the native > FreeBSD one and the linux one. > > Question: since java applications are not 'branded' in the > notion of brandelf, what is the use of having a linux-java? > Just for linux-browsers to use it? The Linux jdk is used to bootstrap the FreeBSD one. > Question 2: I am about to install and try newer versions of > both Artemis and ACT (see /usr/ports/biology). However, a > notice on the master site says: > > UNIX users should get Java version 1.1 from the Sun JDK 1.1 > download page or the JDK 1.1 ports page. Newer versions of > Java may be suitable depending on the platform. > > GNU/Linux users should install the Blackdown.org beta > release of JRE version 1.4.1. The Sun versions of Java > 1.3.1, 1.4.0 and 1.4.1 have various long-standing bugs > (4533641, 4627564) which make them unusable. > > Now, what do they mean by 'UNIX users' and 'depending on the > platform'. Of course I am asking this question to them, but > would also like to hear opinions from the FreeBSD Java > people as to how stable/buggy are the Sun versions on > FreeBSD. > Again, what if I just rm the FreeBSD native jdk and keep > only the linux one. Would a java app find it? May I then try > blackdown.org's linux-java as suggested by the developers of > artemis and act? Well, java applications don't find the jdk, the jdk/jre must find the java application. You run Java applications like: java className So "java" should in your path, JAVA_HOME should point to the base jdk/jre directory, and CLASSPATH should contain required classes. "className" should be a class in your class path. FreeBSD uses "javavm" instead of "java". javavm is just a shell script which manages multiple jdk/jre installs. It sets JAVA_HOME depending on which one it runs. You don't need to use though. You can just add /usr/local/jdk14/bin to your PATH, and set JAVA_HOME to /usr/local/jdk14, and you are done (assuming Native jdk1.1.1). Many Java applications have shell scripts to start them. For instance, Tomcat comes with startup.sh that stuffs a bunch of things into CLASSPATH before executing "java". Tom To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message