Click to See Complete Forum and Search --> : Where is the problem ??
WaveSurfer
08-19-2001, 11:26 PM
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 ??
The prg installed OK 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]$
Malakin
08-20-2001, 12:11 AM
That's a java error. Your java probably isn't installed properly.
Did you try using the binary version of it instead?
Edit: (the binary vesion of muffin)
[ 20 August 2001: Message edited by: idealego ]
WaveSurfer
08-20-2001, 12:19 AM
I found some documentation that say if Java compiler cant find system classes try:
CLASSPATH=/usr/lib/jdk1.1/lib/classes.zip make
So I adjusted the configure file and tried again to ./configure,make,make install problem is that now bash doesnt see the command at all even when I run it from /usr/local/bin which is whee the exe is located.
Does this ring bells for anyone ?? What would you suggest ??
Thanks
Originally posted by WaveSurfer:
<STRONG>The installation went OK no errors so what is a Classpath ??
The prg installed OK 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]$</STRONG>
Classes are the executable units of code for a java program. What the CLASSPATH environmental variable boils down to is the equivelant of the PATH variable for java. What it is saying is that the CLASSPATH environmental variable doesn't hold the path to the org package (above the doit/muffin directory). Most CLASSPATH variables are setup to include the "." (current directory) in them, so by executing it from that directory, you are getting around the problem.
WaveSurfer
08-20-2001, 10:04 AM
Sym,
Thanks for your reply. Im a Newbie so Im trying anything I can think of. First I went to the Make file and changed the CLASSPATH to the following :
CLASSPATH =/home/stephen/tmp/muffin-0.9.3a
/src/org/doit/muffin/Main.java
I got the same error message.
Then I wen to the /org/doit/muffin/ directory and tried the muffin command that also gave me the same error. I notice there is a file in the muffin directory called main.java which I assume is what the CLASSPATH is refering to but it is here that I stop.
You are suggesting that I run the command from somwhere. Where please ?? Or how can I change the CLASSPATH ???
Thanks again.
.java files are java source code. The .class files are the executable code.
I am not that familiar with make, or Linux for that matter. The original problem seems to be that the Java Virtual Machine was not able to locate the executable class (org.doit.muffin.Main). Somewhere on your system, there needs to be a directory structure of org/doit/muffin/, in which there will be a file Main.class. The one alternative is a .jar file which is a bunch of compressed .class files and directories.
First, I would do a file find and see if you can locate the Main.class file which is under the org/doit/muffin directory. If you find this, I would add that directory to the CLASSPATH environmental variable.
I must admit, my knowledge of exactly how the JVM uses the CLASSPATH, and whether it should point to the org directory, or the muffin directory, I am not sure about. See what happens.
Good Luck
PS
One other point, if you are using java version 1.1, it could be too old; java 1.2 and java 1.3 have been out a while now.
[ 20 August 2001: Message edited by: sym ]