• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Exception in Thread NoClassDef Found error

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have installed the saxon XSLT processor to transform an xml file using xslt to another xml file. I have set the Path and ClassPath as follows

PATH=$PATH:$HOME/bin:/d02/interface/ap/payment:/d02/interface/ap/payment/saxon.exe:/d01/oracle/devcomn/util/java/1.4/j2sdk1.4.2_04/bin:.:/d01/oracle/devcomn/util/java/1.4/j2sdk1.4.2_04/jre/lib:/d02/interface/ap/payment/saxon

export PATH

CLASSPATH=:/d02/interface/ap/payment/saxon.exe:/d01/oracle/devcomn/util/java/1.4/j2sdk1.4.2_04/bin:.:/d01/oracle/devcomn/util/java/1.4/j2sdk1.4.2_04/jre/lib/rt.jar:/d02/interface/ap/payment/saxon/saxon.jar

export CLASSPATH
unset USERNAME
. /d01/oracle/devappl/APPSORA.env

When I try to run the test
java com.icl.saxon.StyleSheet -t

it gives me a runtime error
Exception in thread "main" NoClassDefnFound error.
I researched on it in the web and it said it ad to do with the ClassPath setting. Can someone pl help me in setting the right path

Thanks so much

Vidhya
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Exception in thread "main" NoClassDefnFound error.



That exception report should have included the name of the class it cant find - an essential fact when figuring out whats wrong.

Bill
 
vidhya subramaniam
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Bill
This is what it gives
Exception in thread "main" java.lang.NoClassDefFoundError: icl/com/saxon/StyleSheet

Pl help
Thanks
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But that error message suggests that you typed this instead:

java icl.com.saxon.StyleSheet -t

What you said you typed (com.icl...) is correct, but the error message is complaining about something else (icl.com...).
 
reply
    Bookmark Topic Watch Topic
  • New Topic