-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 Post subject: Cannot seem to compile the 4.2 branch off of GitHub
PostPosted: Thu Oct 17, 2013 6:01 pm 
Newbie

Joined: Mon Oct 14, 2013 6:21 pm
Posts: 5
I run throught the steps here:
https://community.jboss.org/wiki/BuildingHibernateORM4x5x

And at first I got an out of memory error, so I increased the JVM stack sizes by creating a gradle.properties file with the following line:
org.gradle.jvmargs=-Xms512m -Xmx1024m

That got me further down the build, but now I'm getting this error:
Code:
..../hibernate-orm/hibernate-core/src/test/java/org/hibernate/test/service/ClassLoaderServiceImplTest.java:121: cannot find symbol
symbol  : method emptyEnumeration()
location: class java.util.Collections
             return java.util.Collections.emptyEnumeration();
                                         ^
..../hibernate-orm/hibernate-core/src/test/java/org/hibernate/test/type/descriptor/java/LocaleTypeDescriptorTest.java:55: cannot find symbol
symbol  : class Builder
location: class java.util.Locale
      final Locale.Builder builder = new Locale.Builder();
                  ^
..../hibernate-orm/hibernate-core/src/test/java/org/hibernate/test/type/descriptor/java/LocaleTypeDescriptorTest.java:55: cannot find symbol
symbol  : class Builder
location: class java.util.Locale
      final Locale.Builder builder = new Locale.Builder();


It's when trying to build this task:
:hibernate-core:compileTestJava

Any ideas on how to fix this? Or what I might be doing wrong?

Cheers


Top
 Profile  
 
 Post subject: Re: Cannot seem to compile the 4.2 branch off of GitHub
PostPosted: Thu Oct 17, 2013 6:09 pm 
Newbie

Joined: Mon Oct 14, 2013 6:21 pm
Posts: 5
Also can't build the master:
Code:
FAILURE: Build failed with an exception.

* Where:
Build file '..../hibernate-orm/build.gradle' line: 85

* What went wrong:
A problem occurred evaluating root project 'hibernate-orm'.
> org/hibernate/build/gradle/publish/auth/maven/AuthenticationManager : Unsupported major.minor version 51.0

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED



Top
 Profile  
 
 Post subject: Re: Cannot seem to compile the 4.2 branch off of GitHub
PostPosted: Thu Oct 17, 2013 6:36 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
looks like you're not compiling with JDK7.
It will work at runtime with Java6, still you need 7 to build it.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject: Re: Cannot seem to compile the 4.2 branch off of GitHub
PostPosted: Thu Oct 17, 2013 6:40 pm 
Newbie

Joined: Mon Oct 14, 2013 6:21 pm
Posts: 5
Thanks! I had just tracked it down with some help from the irc channel. Maybe need to update the documentation on the wiki, as it says you need 6 to build 4.x

Appreciate the quick answer


Top
 Profile  
 
 Post subject: Re: Cannot seem to compile the 4.2 branch off of GitHub
PostPosted: Thu Oct 17, 2013 6:49 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Quote:
Appreciate the quick answer


Was just luck :-)
Indeed I was about to add that for help as contributor you're likely better off on the IRC channels or hibernate-dev mailing list. Unfortunately we can't even read most posts here, although I try.
http://www.hibernate.org/community/mailinglists

I've asked to add a better error message; this requirement of JDK7 is quite recent, but you will clearly not be the last one.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject: Re: Cannot seem to compile the 4.2 branch off of GitHub
PostPosted: Thu Oct 17, 2013 10:27 pm 
Newbie

Joined: Mon Oct 14, 2013 6:21 pm
Posts: 5
I installed the JDK 7 from oracle, but I can't seem to configure Gradle to use it. I'm working on a Mac, and javac - version gives 1.7.0_45, I've also tried adding this line to gradle.properties:
org.gradle.java.home=/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home
but it still gives me the same errors (non being able to find 1.7 specific API's).

Maybe I need to go find out more about gradle.


Top
 Profile  
 
 Post subject: Re: Cannot seem to compile the 4.2 branch off of GitHub
PostPosted: Fri Oct 18, 2013 5:47 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
please ask on the mailing list: using Linux myself I don't know how to help you, but there are other developers using a Mac regularly.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject: Re: Cannot seem to compile the 4.2 branch off of GitHub
PostPosted: Mon Oct 28, 2013 1:51 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 18, 2012 5:03 am
Posts: 36
Location: Fort Wayne, Indiana, USA
Is JAVA_HOME set?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.