From owner-freebsd-questions@FreeBSD.ORG Thu Nov 3 02:46:03 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8BD116A41F for ; Thu, 3 Nov 2005 02:46:03 +0000 (GMT) (envelope-from micahjon@ywave.com) Received: from smtpout1.ywave.com (ycomradius.yelmtel.com [216.227.100.60]) by mx1.FreeBSD.org (Postfix) with SMTP id 8BD4A43D45 for ; Thu, 3 Nov 2005 02:46:03 +0000 (GMT) (envelope-from micahjon@ywave.com) Received: (qmail 24879 invoked by uid 502); 3 Nov 2005 02:46:02 -0000 Received: from dsl28217.ywave.com (HELO ?192.168.1.65?) (micahjon@ywave.com@216.227.115.217) by 0 with SMTP; 3 Nov 2005 02:46:02 -0000 X-CLIENT-IP: 216.227.115.217 X-CLIENT-HOST: dsl28217.ywave.com Message-ID: <436979E9.1040306@ywave.com> Date: Wed, 02 Nov 2005 18:46:01 -0800 From: Micah User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050930) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ryan Masse References: <000501c5e00a$18481880$6401a8c0@78ftvrr> In-Reply-To: <000501c5e00a$18481880$6401a8c0@78ftvrr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: jre1.1.8 Class not found X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Nov 2005 02:46:04 -0000 Ryan Masse wrote: > I have installed the port 'jre' in which upon trying to execute a java class > I get a class not found error message. Originally I thought it may be an > issue with the CLASSPATH, however everything is set as it should. > > port installed to /usr/local/jre1.1.8 > > CLASSPATH = > .:/usr/local/jre1.1.8/lib/rt.jar:/usr/local/jre1.1.8/lib/i18n.jar > JAVA_HOME= /usr/local/jre1.1.8 > > I have a test class which consists of: > > public class Hello { > public static void main(String args[]) { > System.out.println("Hello World!"); > } > } > > It compiles fine to the current directory to Hello.class > > I try to execute it via $JAVA_HOME/bin/java Hello but get the class not > found error. > > At this point I am at a loss. Any help would be appreciated. > > Thanks, > > Ryan 1. Show us the actual error you get. 2. Even if you just want the JVM you probably are better off installing one of the JDKs. 1.1.8 is pretty old, 1.5 is Sun's current version. I assume JRE 1.1.8 is in the ports for legacy reasons only. Micah