Skip to main content
GameDev.net gamedev.net
🔒 Locked

[java] XML and database resources

Started by MaliciousDigit Dec 27, 2007 at 9:58 AM 0 replies 1.1k views
Original Post
MaliciousDigit
MaliciousDigit
I've put a day of googling into it and am not happy with what i came up with. To do JDBC you evidentally need a driver installed that supports MySQL. Class.forName ("com.mysql.jdbc.Driver").newInstance (); This throws a ClassNotFoundException. This is less than ideal for applets. Also, i'm having trouble finding ways to extract data from XML files. There are examples of loading and "parsing", but damned if there's anything on extracting the actual data from the nodes. Any one no of good resources on these?
Son of Cain
Son of Cain
What is the problem that you're trying to solve with JDBC and applets? Chances are there is a better way to do whatever you may be trying to do. Let us know and we can advise you better.

As for the problem at hand, make sure the JDBC driver is in your applet's classpath.

To extract data from XML, you need a good parser - such as JDOM. There are tons of these parsers available on the web, many claiming to do something better and faster than each other. I am very fond of higher levels of abstraction, the kind that JAXB can give you, but that wouldn't be my choice for an applet.

Rodrigo
a.k.a javabeats at yahoo.ca

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.