From owner-freebsd-java Wed Mar 7 9:46:41 2001 Delivered-To: freebsd-java@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id A1F0037B71B for ; Wed, 7 Mar 2001 09:46:36 -0800 (PST) (envelope-from nate@yogotech.com) Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.123.131]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id KAA02287; Wed, 7 Mar 2001 10:46:20 -0700 (MST) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id KAA19836; Wed, 7 Mar 2001 10:46:20 -0700 (MST) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15014.29676.54843.83693@nomad.yogotech.com> Date: Wed, 7 Mar 2001 10:46:20 -0700 (MST) To: Ernst de Haan Cc: Mike Murphree , freebsd-java@FreeBSD.ORG Subject: Re: Differences in jdk1.2.2-beta? In-Reply-To: <20010307184055.A1129@c187104187.telekabel.chello.nl> References: <01030711225200.40551@n4cnw.dyndns.org> <20010307184055.A1129@c187104187.telekabel.chello.nl> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > $JAVA_HOME/bin/java -cp ~/jstreet/innoval.jar innoval.mailer.jstreet & > > Okay, so as far as I can see, you need at least 2 libraries: > > * "innoval" -- seems to be in ~/jstreet/innoval.jar > * "HotJava bean" -- seems to be in ~/jstreet/HotJavaBean.jar > > Try running this command: > > ${JAVA_HOME}/java \ > -cp ~/jstreet/innoval.jar:~/jstreet/HotJavaBean.jar \ > innoval.mailer.jstreet I don't believe 'java' expands ~ paths, so the user will either have to use full pathnames (ie; /home/mike/jstreet/innoval/jar') or relative paths and make sure that the program is always run from the same directory (ie; ./jstreet/innoval.jar). Nate > > This should work. If you still get that error message, then make sure that the > HotJavaBean.jar file contains that class: > > grep "sunw/hotjava/bean/BrowserHistoryListener" ~/jstreet/HotJavaBean.jar > > If it doesn't, then you at least know where to start looking at a solution :) > In that case you probably compiled with a different version of the JAR file, > or perhaps the JAR file is corrupted. > > -- > Ernst > > > > And now get the following output: > > > > %Exception in thread "main" java.lang.NoClassDefFoundError: > > sunw/hotjava/bean/BrowserHistoryListener > > at java.lang.ClassLoader.defineClass0(Native Method) > > at java.lang.ClassLoader.defineClass(ClassLoader.java:442) > > at > > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:101) > > at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) > > at java.net.URLClassLoader.access$1(URLClassLoader.java:216) > > at java.net.URLClassLoader$1.run(URLClassLoader.java:197) > > at java.security.AccessController.doPrivileged(Native Method) > > at java.net.URLClassLoader.findClass(URLClassLoader.java:191) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:290) > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:282) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > > > > What it's looking for seems to be there, but it refuses to find it: > > > > %ls jstreet > > HotJavaBean.jar Sample.java doc jstreet.zip readme > > Mailer Sndspell.jdx image license.txt > > Sample.class dict.txt innoval.jar mostfreq.txt > > > > > > I've tried adding the HotJavaBean.jar file to the classpath but it doesn't > > seem to help... > > > > Any ideas? > > > > Mike > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-java" in the body of the message > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-java" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message