facebook

Export hibernate libraries in jar

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #285438 Reply

    dadox
    Member

    I’m quite new to myeclipse, but have some experience with eclipse.

    I have a project with added hibernate capabilities. Libraries such as hibernate3.jar, log4j-1.2.11.jar and so on, all appear under “Hibernate 3.1 Core Libraries” in the project.

    When launched from myeclipse, it all works fine. Now I would like to export this project as an executable jar, so I assume that all these libraries should also go in the jar. The problem is, when I export the project as a jar, none of these libraries is present, and when launching the jar file it gives NoClassDefFoundError exception for a class from hibernate library.

    So what is the usual method when deploying hibernate projects? Thanks

    #285471 Reply

    Loyal Water
    Member

    Are you working with a Web Application that has hibernate capabilities added to it ?

    #285490 Reply

    dadox
    Member

    Hi, no it’s a pure Java-Swing project.

    #285585 Reply

    Loyal Water
    Member

    You cannot do this while creating a JAR. This can only be achieved while creating a WAR.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Export hibernate libraries in jar

You must be logged in to post in the forum log in