[Re: [Re: [Re: [Re: Errors encountered in compiling Java Tutorial example]]]]

me me2fast at usa.net
Fri Nov 5 00:02:03 PST 1999


Archie Cobbs <archie at whistle.com> wrote:
> 
> me writes:
> > Great, the documentation is not apparent about explicitly specifying
*every*
> > .JAR that's needed.  Perhaps this is asking way too much, but why can't a
> > directory(s) be specified which can then be parsed for the referenced
.JARs ? 
> > Hasn't this been the case with the C/C++ compilers for specifying INCLUDES
&
> > LIBS ??
> 
> This is easy to do with kaffe using the .kafferc feature (see man page).
> Here's mine, for example:
> 
>   #!/bin/sh
> 
>   # Add installed *.zip and *.jar to CLASSPATH
> 
>   AUTOZIPJAR=`find ${KAFFE_CLASSDIR} \( -name '*.jar' -o -name '*.zip' \) -a
\! -name Klasses.jar -a \! -name pizza.jar -a \! -name classes.zip | awk '{
printf ":%s", $1 }'`
> 
>   CLASSPATH="${CLASSPATH}${AUTOZIPJAR}"
> 
> -Archie
> 
> 

That's cool, but I have the same problem even with a fully qualified
-classpath:

cat myrun.csh 

#!/bin/csh

java -classpath
/usr/local/share/kaffe/Klasses.jar:/usr/local/share/kaffe/kjc.jar:/usr/local/share/kaffe/comm.jar:/usr/local/share/kaffe/pjava.jar:/usr/local/share/kaffe/servlet.jar:/usr/local/share/kaffe/tools.jar:/usr/local/share/kaffe/microsoft.jar:/usr/local/share/kaffe/rmi.jar:/usr/local/share/kaffe/swing.jar:/usr/local/share/kaffe/swingall.jar:/usr/local/share/kaffe/beaninfo.jar:/usr/local/share/kaffe/mac.jar:/usr/local/share/kaffe/motif.jar:/usr/local/share/kaffe/multi.jar:/usr/local/share/kaffe/windows.jar
 SwingUI.class


./myrun.csh 

java.lang.NoClassDefFoundError: SwingUI/class
	at java.lang.Throwable.<init>(Throwable.java:38)
	at java.lang.Error.<init>(Error.java:21)
	at java.lang.LinkageError.<init>(LinkageError.java:21)
	at java.lang.NoClassDefFoundError.<init>(NoClassDefFoundError.java:21)

BTW, since I upgraded to v1.0.5, I'm assuming that the Make does the updates
to the man pages too.  But all I have for a Kaffe man page is the one for
'kaffe', that's it!  It has a passing mention of 'kafferc' but no details.  Is
this complete ??

Thanks,

me2fast at usa.net


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1


More information about the kaffe mailing list