From owner-freebsd-java Thu Mar 12 14:12:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA10050 for freebsd-java-outgoing; Thu, 12 Mar 1998 14:12:16 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from oznet15.ozemail.com.au (oznet15.ozemail.com.au [203.2.192.121]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA10011 for ; Thu, 12 Mar 1998 14:12:07 -0800 (PST) (envelope-from joe.shevland@horizonti.com) Received: from horizonti.com ([203.33.128.245]) by oznet15.ozemail.com.au (8.8.4/8.6.12) with ESMTP id JAA00385; Fri, 13 Mar 1998 09:11:41 +1100 (EST) Message-ID: <35085D32.1D0FB08D@horizonti.com> Date: Fri, 13 Mar 1998 09:09:54 +1100 From: Joe Shevland Organization: Horizon Technologies International X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: Richard Fahey CC: freebsd-java@FreeBSD.ORG Subject: Re: jdk and appletviewer References: <3.0.5.32.19980312192451.007a7510@mail1.tinet.ie> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Richard Fahey wrote: > > To whom it may concern, > [snip] > Whenever I try to execute an applet or run the appletviewer on a class > file, I get the following error Invalid: JAVA_HOME: c:\cafe\JAVA and > nothing executes. > [snip] > Any ideas?? > We're in freebsd-java, but... 1. A few to try (and note that your browser works because it uses its own virtual machine, and so is not affected by your local settings). >From a DOS prompt, try typing: SET JAVA_HOME= This will unset the environment variable. Test the appletviewer or whatever (in this same DOS window) to see if it is now working. If this is the case, and JAVA_HOME is not set in the autoexec.bat file, search the Windows registry (using RegEdit, installed by default) for the key JAVA_HOME to see what is setting it. Upon finding it, delete it will extreme prejudice :) The System control panel of WinNT boxes can also be used to set up environment variables. 2. Make sure that your PATH includes the 'bin' directory of the JDK install directory. Make sure your CLASSPATH is set correctly. Examples follow: SET PATH=%PATH%;C:\JDK1.1.5\BIN SET CLASSPATH=.;C:\JDK1.1.5\LIB\CLASSES.ZIP 3. If these are correct, try setting JAVA_HOME yourself in the autoexec.bat to point to the top level directory of the installed JDK: SET JAVA_HOME=C:\JDK1.1.5 Actually, I thought after about JDK 1.1.3 or so that JAVA_HOME is the only one that needs to be set, as well as the PATH inclusion. Hope it helps... -- Joe Shevland Joe.Shevland@HorizonTechnologies.com Horizon Technologies International To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message