File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes XML Relative Path (hibernate configuration problem) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML Relative Path (hibernate configuration problem)" Watch "XML Relative Path (hibernate configuration problem)" New topic

XML Relative Path (hibernate configuration problem)

Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 580

I am going to do this in Java SWING. The application is going to be portable. So the path can't be dead set.
Paul Clapham

Joined: Oct 14, 2005
Posts: 18109

There's no "path" in that entry. The last part of the database driver URL is the DSN (data source name), which you configure into ODBC before running your code. I would suggest you get that configuration done and tested in a small application without Hibernate.
I agree. Here's the link:
subject: XML Relative Path (hibernate configuration problem)
Similar Threads
SQL Server 2005 Hibernate in Netbeans problem
[Newbie Issue] hibernate.cfg.xml and hbm.xmls are not packaged by Maven?
Really strange error: Could not initialize class net.sf.hibernate.impl.SessionFactoryImpl
"">create - to generate DB Tables