<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4807.2300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>> 1.
What does the error message mean? I interpret it to mean that "main"
isn't<BR>> defined in the StyleSheet.class in the jar
file.</FONT><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>It means that the jvm cannot find the StyleSheet
class, *not* that main does not</FONT></DIV>
<DIV><FONT face=Arial size=2>exist in the class.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>> 2. Does the CLASSPATH have a maximum length? Maybe the
directory where<BR>> saxon.jar is located only appears to be in
my CLASSPATH.</DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>There might be, but I highly suspect that this is
not the problem as I have used very</FONT></DIV>
<DIV><FONT face=Arial size=2>large number of paths in the CLASSPATH
variable.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I would focus my attention on the classpath.
To help insure that the jvm is seeing</FONT></DIV>
<DIV><FONT face=Arial size=2>the jar file, you might want to try "java
-verbose". You can also be more explicit by</FONT></DIV>
<DIV><FONT face=Arial size=2>specifying:</FONT></DIV>
<DIV><FONT face=Arial size=2>java -cp
'/usr/local/share/saxon/saxon.jar:another.jar:yetAnother.jar'
com.icl.saxon.StyleSheet</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Bob</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=vwharris@airmail.net href="mailto:vwharris@airmail.net">Val W.
Harris</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=discuss@ntlug.org
href="mailto:discuss@ntlug.org">NTLUG Discuss</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, February 18, 2002 4:24
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [NTLUG:Discuss] Java Woes</DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial
size=2></FONT><BR></DIV>I've been attempting to get xalan-j or saxon XSLT
processors working<BR>for far longer than I care to admit. I'm running
RedHat 7.2 pretty much<BR>out-of-the-box. The following command is taken
straight out of the<BR>saxon docs for running the samples. Here is the
error message I'm getting<BR>consistently:<BR><BR>prompt: java
com.icl.saxon.StyleSheet data/othello.xml styles/play.xsl dir=playhtml
<BR>Exception in thread "main" java.lang.NoClassDefFoundError:
com/icl/saxon/StyleSheet<BR><BR>When I "jar tf" the saxon.jar file, I
get:<BR><BR>prompt: jar tf /usr/local/share/saxon/saxon.jar | grep
com/icl/saxon/StyleSheet<BR>com/icl/saxon/StyleSheet.class<BR><BR>The
directory /usr/local/share/saxon/saxon.jar is in my CLASSPATH
environment<BR>variable. My questions are:<BR><BR>1. What does the
error message mean? I interpret it to mean that "main" isn't<BR>
defined in the StyleSheet.class in the jar file.<BR><BR>2. Does
the CLASSPATH have a maximum length? Maybe the directory where<BR>
saxon.jar is located only appears to be in my CLASSPATH.<BR><BR>Any
help would be greatly appreciated. I'm completely
baffled.<BR><BR>Thanks,<BR><BR>Val<BR><PRE class=moz-signature cols="$mailwrapcol">--
Val W. Harris <A class=moz-txt-link-abbreviated href="mailto:vwharris@airmail.net">vwharris@airmail.net</A>
"Become a student of change. It is the only
thing that will remain constant."
-Anthony J. D'Angelo
</PRE>_______________________________________________
http://www.ntlug.org/mailman/listinfo/discuss</BLOCKQUOTE></BODY></HTML>