Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within XML
Search Coderanch
Advance search
Google search
Register / Login
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
Tim Cooke
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Liutauras Vilda
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
XML and Related Technologies
Probelm using XSU
yogi maheshnath
Ranch Hand
Posts: 30
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I have included xsu12.jar,xmlparserv2.jar,xdb.jar(oracle xml parsers) in my build path.I am using oracle 9i and MyEclipse
IDE
.
I have written following code:-
import oracle.jdbc.driver.*; import oracle.xml.sql.query.OracleXMLQuery; import java.lang.*; import java.sql.*; class test { public static void main(String[] argv) { try{ Class.forName("oracle.jdbc.driver.OracleDriver"); Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:ABC","scott","tiger"); OracleXMLQuery qry = new OracleXMLQuery(conn, "select * from emp"); String str = qry.getXMLString(); // Print the XML output System.out.println(" The XML output is:\n"+str); // Always close the query to get rid of any resources.. qry.close(); }catch(SQLException e){ System.out.println(e.toString()); } } But its giving exeception:- java.lang.NoClassDefFoundError: oracle/xml/parser/v2/XSLException Please help in solving this problem.
Thanks&Regards<br />Yogi MaheshNath
Look ma! I'm selling my stuff!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Sql 2 XML
Generate Xml thru database
Working with third-party utility
Convert OutputStream to InputStream!
Writing DOM object in a file
More...