standalone « Jar « JPA Q&A





1. Is there a way to package jar dependencies for running the java class in a standalone environment    stackoverflow.com

We have a small java based server (a simple app which fetches data using MySQL and hibernate) which needs to run standalone (e.g. java -cp <....> com.foo.Server). Currently we use mvn ...

2. Standalone App--where do the jars go?    forum.hibernate.org

Hello, Does anyone know if there is a standard way to embed Hibernate in a standalone application? For example, if I include hibernate2.jar in Application.jar, then the classloader won't find it. The only ways I can think of are to either: 1).unpackage hibernate2.jar and put its bare contents into Application.jar or 2).with Class-Path reference from Application.jar to hibernate2.jar and run them ...