On Wed, Apr 20, 2011 at 14:12, Chris24300 <chris24...@hotmail.com> wrote: > I thought maven would include the db4o jar in my project jar? > > If I specify -classpath and point to db4o.jar then java can't find my test > class. > > bash-3.2$ java -classpath ./db4o-8.0.184.15484-all-java5.jar -jar > Db4oServer.jar > > Does not even run..
If you want an executable jar, then you have to specify a main class and make sure that what you need is included. I wrote a little about a while ago. You can read it at http://thomassundberg.wordpress.com/2011/03/05/create-an-executable-jar-from-maven/ HTH Thomas > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Packaged-jar-cannot-access-class-of-a-dependency-tp4315587p4315628.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Thomas Sundberg M. Sc. in Computer Science Mobile: +46 70 767 33 15 Blog: http://thomassundberg.wordpress.com/ Twitter: @thomassundberg Better software through faster feedback --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org