Project

Profile

Help

Eclipse: net.sf.saxon cannot be resolved to a

Added by Anonymous over 16 years ago

Legacy ID: #4601463 Legacy Poster: publicpuck (publicpuck)

I am relatively new to eclipse, but I have spent the last few hours searching for the solution to this problem. 1)I recently downloaded the saxon 8.9.0.4 jar files to use xslt. 2)I put them in my ..\sun\saxon directory. 3)I added the libraries by doing project->properties->java build path->libraries->add external jars... 4)All the saxon8.jar files show up (9 of them). I went to Order and Export tab and selected all 9 of the saxon8.jar files (they are the last items below the src and Jre1.6.0_03). 5)project->properties->Run/Debug Settings->Stylizer->Classpath->Add External JARs... also added the 9 saxon8.jar files. (Stylizer is the name of the class file with the main function, also the only java file currently in my project). 6)Inside of Stylizer.java I added "import net.sf.saxon.*;". (The intellisense eclipse ability finds this package and doesn't complain about me adding it.) 7)I have a line "TransformerFactory tFactory = net.sf.saxon.TransformerFactoryImpl();" Eclipse complains: "net.sf.saxon cannot be resolved to a type". I tried simplifying this java file to only contain this line, and I still got the problem.


Replies (1)

RE: Eclipse: net.sf.saxon cannot be resolved - Added by Anonymous over 16 years ago

Legacy ID: #4601597 Legacy Poster: Michael Kay (mhkay)

I'm afraid I'm not an Eclipse user so I can't offer any suggestions here. Eclipse has a rather idiosyncratic class loading architecture which does seems to cause people problems on occasions. However, many people are using Eclipse and Saxon successfully, so there must be an answer. You may find that the saxon-help mailing list is a better way of reaching other Saxon users who might be able to help. Not many users monitor this forum, but the mailing list is well subscribed. Michael Kay http://www.saxonica.com/

    (1-1/1)

    Please register to reply