This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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


JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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
 
It's not a secret anymore!