Error: Package Does Not Exist
Hello,
I'm developing a standalone application using Hibernate. All class files are arranged in a package structure within the archive Application.jar. The Hibernate archive (hibernate2.jar) is also located within Applicaiton.jar. The basic structure is shown here:
Application.jar
+--UserInterface.class
+--DAO.class
+--HibernateImplementation.class
+--hibernate2.jar
The various classes shown above import a Hibernate package, but I keep getting the same error:"package net.sf.hibernate does not exist"
It seems like the classloader isn't finding hibernate2.jar. This, even though I defined it in the manifest class path. So am I missing another reference somewhere else?
Any suggestions would be helpful. Thanks in advance!
Itchy
Thanks for your input mavroprovato.
>You shouldn't put the hibernate2.jar inside the Application.jar. Just put it outside your jar and set your classpath in the manifest file of the Application.jar
That is what I feared. I had hoped to archive everything so it could be transported easier. Maybe the next JVM will have a class loader that will enable this...I hope:=)
This might be a bit silly ... but I am running Tomcat server 5 on Linux Fedora. I have a bean named "software" that has two classes in them, Application.java and Applications.java. (members of the software package).
location of the software is, WEB-INF/classes/software.
In my classes folder MainController.java is kept. When complie this file I am getting an error, "Package software does not exist". The code that I have wirtten works on the widows XP, so there cant be anything like a syntax error anyother type of a code related error.
Any ideas why this is happening?
One more thing... Applications.java contains objects of Application.java (Serialiazable), but compiler complains that Application does not exist as.
Will gratefull for the help.
thanks
CJ
C_J at 2007-7-7 12:50:07 >
