Click to See Complete Forum and Search --> : Classpath ??!!


WaveSurfer
08-19-2001, 06:07 AM
Installed Muffin OK ./configure,make,make install, but below is what I get when I try top run the prog. Could someone suggest what the prog is looking for . The installation went OK no errors so what is a Classpath ??

[stephen@localhost stephen]$ muffin
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/ClassNotFoundException: org/doit/muffin/Main
at java.lang.Class.forName(Class.java:native)
at java.lang.Class.forName(Class.java:53)
Aborted
[stephen@localhost stephen]$

xDAVIDx
08-24-2001, 08:21 PM
m... it sounds like it wants you to check the path of the java class

in java if you 'compile' a program hello.java

it makes a class that can run through the jvm ( hello.class ).

it sounds like muffin had a path hard coded in the program and
you installed it in an 'abnormal' place.

or, more likely, you didn't install java correctly or wrong version
the webpage says JDK 1.1 ( we are talking about muffin the http filter right? )

or muffin just a bug in it or something.

I suggest that you check your set up and try again
and then post a complete write on http://sourceforge.net/projects/muffin/

sym
08-24-2001, 10:04 PM
the CLASSPATH environmental variable is what java uses to locate the .class file. What this is saying is the you do not have the location of this muffin.clsss file located in the CLASSPATH.

You can think of CLASSPATH as the PATH variable, but only for Java classes.

The org.xxx.yyy.muffin means that Muffin.class is in the package org.xxx.yyy. This package structure is also a directory structure, so somewhere, you have a directoy org, that has a subdirectory xxx, etc.., down to the Muffin.class file.

What you need to do is set the CLASSPATH variable to point to that org directory, then execute : "java org.xxx.yyy.Muffin", or some such.

I must admit, I am a bit fuzzy on whether the CLASSPATH should point to the org directory, or the Muffin.class file, but I think what I just said is correct. Also, I am fuzzy on whether it should be "java org.xxx.yyy.Muffin", or "java Muffin".

Tinker.