Hi all,
I'm trying to test out db4o (new to db in general) and so I created a new
project to test dumping some random data in. I use three classes
import com.db4o.ObjectContainer;
import com.db4o.ObjectSet;
import com.db4o.cs.Db4oClientServer;
In my pom.xml I include the db4o repository and the dependency, I wasn't
able to connect to the repository at one point so I installed it to my local
repo and everything was building.. When I goto run the jar I get an class
not found exception with Db4oClientServer, I searched threw the db4o jar and
the class is in there...
Here's the error:
bash-3.2$ java -jar Db4oServer.jar
Running server test...
Exception in thread "main" java.lang.NoClassDefFoundError:
com/db4o/cs/Db4oClientServer
at myTest.db4o.client.TestClient.test(TestClient.java:32)
at myTest.db4o.client.TestClient.main(TestClient.java:22)
Caused by: java.lang.ClassNotFoundException: com.db4o.cs.Db4oClientServer
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 2 more
I don't know what I messed up but it doesn't like something. When I search
through the jar maven packaged I only see my classes, is the db4o jar
supposed to be included as well? Can someone help me out?
Thanks!
--
View this message in context:
http://maven.40175.n5.nabble.com/Packaged-jar-cannot-access-class-of-a-dependency-tp4315587p4315587.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]