Hello,
Does anyone out there have experience creating standalone applications with Hibernate?
The JVM's classloader doesn't seem to recognize classes within hibernate2.jar, so I keep getting this error in the DAO class: "package net.sf.hibernate does not exist." My complete structure is like this:
Application.jar
+--DynamicLoader.class 'loads main class in UserInterface.jar
+--UserInterface.jar 'main class and helper classes for user interface
+--DAO.jar 'dao classes start hibernate sessions
+--hibernate2.jar 'from hibernate distribution
+--Hibernate.sar 'hibernate implementation classes
+--hibernate2.jar 'from hibernate distribution
I know that the JVM classloader can't find jars inside of jars, but how can I avoid this here? Should I scrap the inner archives and package everything in a single Application.jar? What about Hibernate.sar, should I scrap that too? Is there a standard way to package a standalond application such as this?
I'd really appreciate any suggestions. Thank in advance.
Itchy
|