FYI - you usually just need to close out the command lime window and start that 
again. That is when it starts another session and reloads the environmental 
variables (i.e CLASSPATH, PATH, etc).



In a message dated 11/09/10 01:12:51 Pacific Standard Time, 
[email protected] writes:
Srikrishnan, 

Sometimes Windows doesn't update path values entered by GUI until it will be 
restarted. Try enter 'SET CLASSPATH' in your command line. Suggest there are 
"Environment variable CLASSPATH not defined" message will appears (if you 
created CLASSPATH) or CLASSPATH doesn't contains needed jars (if you edited 
CLASSPATH). If so - try to restart Windows. 

-- 
Best regards, 
Eduard Tibet 


-----Original Message----- 
From: SriKrishnan [mailto:[email protected]] 
Sent: Tuesday, November 09, 2010 8:54 AM 
To: [email protected] 
Subject: [docbook-apps] CLASSPATH and Saxon 

Hi All, 



I have tried to set CLASSPATH for saxon as per mentioned in the "DocBook XSL: 
The Complete Guide Fourth Edition" Page 53 "To update your CLASSPATH on 
Windows, do the following:" in my Windows XP Professional OS. 



In my Environmental variable for CLASSPATH has been as follows: 



.;C:\Program 
Files\Java\jre6\lib\ext\QTJava.zip;C:\saxonhe9-2-1-5j\saxon9he.jar;C:\docbook-xsl-1.76.1-RC2\extensions\saxon65.jar;C:\xml-commons-resolver-1.2\resolver.jar;L:/catalog.xml;C:\fop-1.0\;
 



But when I open command prompt and typed the error message appears as below: 



Microsoft Windows XP [Version 5.1.2600] 

(C) Copyright 1985-2001 Microsoft Corp. 



C:\Documents and Settings\007.TECHSETINDIA.000>java com.icl.saxon.StyleSheet -t 

Exception in thread "main" java.lang.NoClassDefFoundError: 
com/icl/saxon/StyleSheet 

Caused by: java.lang.ClassNotFoundException: com.icl.saxon.StyleSheet 

       at java.net.URLClassLoader$1.run(Unknown Source) 

       at java.security.AccessController.doPrivileged(Native Method) 

       at java.net.URLClassLoader.findClass(Unknown Source) 

       at java.lang.ClassLoader.loadClass(Unknown Source) 

       at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) 

       at java.lang.ClassLoader.loadClass(Unknown Source) 

Could not find the main class: com.icl.saxon.StyleSheet.  Program will exit. 





Can anybody help me to solve this problem? 



Thanks, 

Srikrishnan 


--------------------------------------------------------------------- 
To unsubscribe, e-mail: [email protected] 
For additional commands, e-mail: [email protected] 

Reply via email to