[NTLUG:Discuss] Java Woes

Stephen Davidson gorky at freenet.carleton.ca
Mon Feb 18 09:02:46 CST 2002


Greetings, Val.

1) You are correct.  And w/o a main, the class cannot be run from the command line.  Unfortunately, I am not completely up on the XML classes, so I can't tell 
you what the correct command is.

2) Not as far as I am aware or ever heard of, except for system limitations of evironment variables.

For more information, c/o http://www.javamug.org.  They have a general mailing list that will frequently answer these types of questions.

-Steve

Val W. Harris wrote:

> I've been attempting to get xalan-j or saxon XSLT processors working
> for far longer than I care to admit.  I'm running RedHat 7.2 pretty much
> out-of-the-box.  The following command is taken straight out of the
> saxon docs for running the samples.  Here is the error message I'm getting
> consistently:
> 
> prompt:   java com.icl.saxon.StyleSheet data/othello.xml styles/play.xsl 
> dir=playhtml
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> com/icl/saxon/StyleSheet
> 
> When I "jar tf" the saxon.jar file, I get:
> 
> prompt:   jar tf /usr/local/share/saxon/saxon.jar | grep 
> com/icl/saxon/StyleSheet
> com/icl/saxon/StyleSheet.class
> 
> The directory /usr/local/share/saxon/saxon.jar is in my CLASSPATH 
> environment
> variable.  My questions are:
> 
> 1.  What does the error message mean?  I interpret it to mean that 
> "main" isn't
>     defined in the StyleSheet.class in the jar file.
> 
> 2.  Does the CLASSPATH have a maximum length?  Maybe the directory where
>     saxon.jar is located only appears to be in my CLASSPATH.
> 
> Any help would be greatly appreciated.  I'm completely baffled.
> 
> Thanks,
> 
> Val
> 
> -- 
> Val W. Harris            vwharris at airmail.net
> 
> "Become a student of change. It is the only
> thing that will remain constant."
> -Anthony J. D'Angelo
> 
> _______________________________________________ 
> http://www.ntlug.org/mailman/listinfo/discuss



-- 
Stephen Davidson
Java Consultant
Delphi Consultants, LLC
http://www.delphis.com
Phone: 214-696-6224 x208





More information about the Discuss mailing list