Compiling hibernate source code

Source: Internet
Author: User

1) Installing Gradle,gradle is a maven-like build tool


2) Install the gitclient.

Clone source code from URL Https://github.com/hibernate/hibernate-orm


3) command line into the local Hibernate-orm folder, run the gradlew.bat assemble command, will be built.


4) Run the Gradlew.bat Eclipse command to generate the Eclipse project file.


Solutions to problems that occur when compiling

1.java.lang.outofmemoryerror:java Heap Space

Enter the gradlew.bat file in the Hibernate-orm folder to adjust the maximum allocated memory size for the heap.

@rem the ADD default JVM options here. You can also with java_opts and gradle_opts to pass the JVM options to this script.
Set default_jvm_opts= "-xmx1024m"

2.CORE\SRC\MAIN\ORG\HIBERNATE\ANNOTATIONS\SQLDELETE.JAVA:37: Error: Encoding GBK non-mapped characters

Need to go to the Control Panel, change the regional language inside-admin-change the system locale to English (United Kingdom)

3. Package Org.hibernate.metamodel.source does not exist. Move the Hibernate-orm\hibernate-entitymanager\src\test\java\org\hibernate\jpa\test\criteria under the path

\paths under the Singularattributejointest.java file to be deleted.

4. After you import project into Eclipse, a red exclamation mark appears on the project,



The solution is: menu bar window--"Show view--" problems, can see the problem

DescriptionResourcePath locationType
A cycle is detected in the build path of project ' Hibernate-c3p0 '.the cycle consists of projects {hibernate-testing, Hibernate-core, HIBERNATE-C3P0, Hibernate-ehcache, Hibernate-enhance-maven-plugin, Hibernate-entitymanager, Hibernate-envers, Hibernate-gradle-plugin, HIBERNATE-HIKARICP, Hibernate-infinispan, Hibernate-jpamodelgen, Hibernate-osgi, Hibernate-proxool} hibernate-c3p0 Build Path build path problem.

Solution: Building path problems, Building, preferences-> Java, Compiler, Window, Circular Dependen Cies, change error to Warning

is to change the loop dependency from error to warning.




Compiling hibernate source code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.