This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JDBC and the fly likes loading in Class.forName() a class from inside a jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "loading in Class.forName() a class from inside a jar file" Watch "loading in Class.forName() a class from inside a jar file" New topic
Author

loading in Class.forName() a class from inside a jar file

Patrick Martz
Greenhorn

Joined: Dec 12, 2009
Posts: 18
My applet is running from applet tags pointing inside an archive aka jar. The problem arises when i try to connect using driverManager the class.forName(entry) is automatically appended to the directory of the default.aspx page. i don't understand how its going from the inside the jar directly to a higher level url. I need the class.forName() to point it into the jar file in http://sharepoint/site/folder/ .jar file. so it can access the sqlserverdriver in it. Thanks for reading.Patrick.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: loading in Class.forName() a class from inside a jar file