-->
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.  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: how to correct these build errors?
PostPosted: Wed Feb 09, 2005 3:13 am 
Newbie

Joined: Sat Oct 30, 2004 10:47 pm
Posts: 15
Buildfile: build.xml
[taskdef] Could not load definitions from resource clovertasks. It could not be found.

splash:

versioncheck:
[versioncheck] Wrote info file to E:\Software\cvsroot\hibernate-3.0\lib\README.txt

init:
[echo] Build Hibernate-3.0 (2005-02-09 02:41:26)
[echo] JDK version: 1.4

cleanantlr:
[delete] Deleting directory E:\Software\cvsroot\Hibernate3\build\gensrc\org\hibernate\hql\antlr

antlr:
[mkdir] Created dir: E:\Software\cvsroot\Hibernate3\build\gensrc\org\hibernate\hql\antlr
[antlrtask] ANTLR Parser Generator Version 2.7.3 1989-2004 jGuru.com
[antlrtask] ANTLR Parser Generator Version 2.7.3 1989-2004 jGuru.com
[antlrtask] ANTLR Parser Generator Version 2.7.3 1989-2004 jGuru.com

compile:
[javac] Compiling 760 source files to E:\Software\cvsroot\Hibernate3\build\classes
[javac] E:\Software\cvsroot\Hibernate3\build\gensrc\org\hibernate\hql\antlr\HqlSqlBaseWalker.java:3503: ';' expected
[javac] public static fina String[] _tokenNames = {
[javac] ^
[javac] E:\Software\cvsroot\Hibernate3\build\gensrc\org\hibernate\hql\antlr\SqlGeneratorBase.java:2036: ')' expected
[javac] reportError(ex;
[javac] ^
[javac] 2 errors

BUILD FAILED

and you know, these .java files are generated by ANTLR, and always omit some characters. As above, in the statement of " public static fina String[] _tokenNames ", "fina" should be "final"; and next "reportError(ex;" should be "reportError(ex);"


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 10, 2005 1:03 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Hum, are you sure it happen from a fresh copy of Hibernate3 ?

_________________
Emmanuel


Top
 Profile  
 
 Post subject: yes
PostPosted: Thu Feb 10, 2005 11:58 pm 
Newbie

Joined: Sat Oct 30, 2004 10:47 pm
Posts: 15
Yes, I am sure. I checked out the Hibernate3 module from cvs and have updated to the fresh copy.

And these errors always exist when I practice tools such as ANTLR, JavaCC. Their generated .java files always omit some characters like above. I don't know the exact reason.

Cause hibernate3 has adopted ANTLR as HQL parser, so I want to know the answer from here:-)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 14, 2005 6:13 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Hibernate uses ANTLR 2.7.4 and ANT 1.6.1

_________________
Emmanuel


Top
 Profile  
 
 Post subject: I don't take it as a reason
PostPosted: Tue Feb 15, 2005 5:51 am 
Newbie

Joined: Sat Oct 30, 2004 10:47 pm
Posts: 15
I have tried ANTLR 2.7.3 and 2.7.4, ANT 1.6.1 and 1.6.2.

I just don't know the reason why those .java files had so many spelling errors. If I correct the spelling errors above by hand, I would find some other compiling errors caused by some spellings like above.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 15, 2005 6:44 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
This is really weird. Maybe you have an wrong antlr somewhere in your CP.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 15, 2005 9:03 am 
Newbie

Joined: Sat Oct 30, 2004 10:47 pm
Posts: 15
This is really weired. and I don't know the reason exactly.
It can be built when I switch to JDK1.5. and I have two JDK version with my computer, one is JDK 1.4.2, the other is JDK1.5.

Maybe it's a problem with my environment. Thanks for your time.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 25, 2005 11:54 am 
Newbie

Joined: Thu May 06, 2004 5:56 am
Posts: 3
I have a similar issue:


Buildfile: build.xml
[taskdef] Could not load definitions from resource checkstyletask.properties. It could not be found.
[taskdef] Could not load definitions from resource clovertasks. It could not be found.

splash:

init:
[echo] Build Hibernate-3.0 (2005-03-25 04:51:15)
[echo] JDK version: 1.4

init.antlr:

antlr:

compile:
[javac] Compiling 313 source files to D:\temp\MSDE20~1\HIBERN~1.0\build\classes
[javac] D:\temp\MSDE20~1\HIBERN~1.0\build\gensrc\org\hibernate\hql\antlr\HqlBaseParser.java:164: cannot resolve symb
ol
[javac] symbol : method recover (antlr.RecognitionException,antlr.collections.impl.BitSet)
[javac] location: class org.hibernate.hql.antlr.HqlBaseParser
[javac] recover(ex,_tokenSet_0);
[javac] ^
[javac] D:\temp\MSDE20~1\HIBERN~1.0\build\gensrc\org\hibernate\hql\antlr\HqlBaseParser.java:188: cannot resolve symbol
[javac] symbol : method recover (antlr.RecognitionException,antlr.collections.impl.BitSet)
[javac] location: class org.hibernate.hql.antlr.HqlBaseParser
[javac] recover(ex,_tokenSet_0);
[javac] ^
[javac] D:\temp\MSDE20~1\HIBERN~1.0\build\gensrc\org\hibernate\hql\antlr\HqlBaseParser.java:212: cannot resolve symbol
[javac] symbol : method recover (antlr.RecognitionException,antlr.collections.impl.BitSet)
[javac] location: class org.hibernate.hql.antlr.HqlBaseParser
[javac] recover(ex,_tokenSet_0);
[javac] ^
[javac] D:\temp\MSDE20~1\HIBERN~1.0\build\gensrc\org\hibernate\hql\antlr\HqlBaseParser.java:236: cannot resolve symbol
.....


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 25, 2005 5:23 pm 
Newbie

Joined: Mon Jul 25, 2005 5:12 pm
Posts: 2
Yes, that was the exact problem I have when I try to use hibernate3.0.5

The first error I resolved by downloading checkstyle-all-4.0-beta4.jar anf put this jar file in lib folder.

The second I had no clue yet. I guess it is because Hibernate 3 not stable yet.

My environment was JSDK 1.5.0_03. downloaded antlr.jar (version 2.7.5) and putting it in ant 1.6.5 lib folder, along with junit.jar (version 3.8.1)

I have this problem when I follow hibernate Day 1 task

http://www.hibernate.org/152.html

I will try an earlier version of hibernate and see if it works.


jerome wrote:
I have a similar issue:


Buildfile: build.xml
[taskdef] Could not load definitions from resource checkstyletask.properties. It could not be found.
[taskdef] Could not load definitions from resource clovertasks. It could not be found.

splash:

init:
[echo] Build Hibernate-3.0 (2005-03-25 04:51:15)
[echo] JDK version: 1.4

init.antlr:

antlr:

compile:
[javac] Compiling 313 source files to D:\temp\MSDE20~1\HIBERN~1.0\build\classes
[javac] D:\temp\MSDE20~1\HIBERN~1.0\build\gensrc\org\hibernate\hql\antlr\HqlBaseParser.java:164: cannot resolve symb
ol
[javac] symbol : method recover (antlr.RecognitionException,antlr.collections.impl.BitSet)
[javac] location: class org.hibernate.hql.antlr.HqlBaseParser
[javac] recover(ex,_tokenSet_0);
[javac] ^
[javac] D:\temp\MSDE20~1\HIBERN~1.0\build\gensrc\org\hibernate\hql\antlr\HqlBaseParser.java:188: cannot resolve symbol
[javac] symbol : method recover (antlr.RecognitionException,antlr.collections.impl.BitSet)
[javac] location: class org.hibernate.hql.antlr.HqlBaseParser
[javac] recover(ex,_tokenSet_0);
[javac] ^
[javac] D:\temp\MSDE20~1\HIBERN~1.0\build\gensrc\org\hibernate\hql\antlr\HqlBaseParser.java:212: cannot resolve symbol
[javac] symbol : method recover (antlr.RecognitionException,antlr.collections.impl.BitSet)
[javac] location: class org.hibernate.hql.antlr.HqlBaseParser
[javac] recover(ex,_tokenSet_0);
[javac] ^
[javac] D:\temp\MSDE20~1\HIBERN~1.0\build\gensrc\org\hibernate\hql\antlr\HqlBaseParser.java:236: cannot resolve symbol
.....


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 25, 2005 6:00 pm 
Newbie

Joined: Mon Jul 25, 2005 5:12 pm
Posts: 2
I tried hibernate 2.1.8, same problem.

I use Windows XP when I got this problem.

usAnalysts wrote:
Yes, that was the exact problem I have when I try to use hibernate3.0.5

The first error I resolved by downloading checkstyle-all-4.0-beta4.jar anf put this jar file in lib folder.

The second I had no clue yet. I guess it is because Hibernate 3 not stable yet.

My environment was JSDK 1.5.0_03. downloaded antlr.jar (version 2.7.5) and putting it in ant 1.6.5 lib folder, along with junit.jar (version 3.8.1)

I have this problem when I follow hibernate Day 1 task

http://www.hibernate.org/152.html

I will try an earlier version of hibernate and see if it works.


jerome wrote:
I have a similar issue:


Buildfile: build.xml
[taskdef] Could not load definitions from resource checkstyletask.properties. It could not be found.
[taskdef] Could not load definitions from resource clovertasks. It could not be found.

splash:

init:
[echo] Build Hibernate-3.0 (2005-03-25 04:51:15)
[echo] JDK version: 1.4

init.antlr:

antlr:

compile:
[javac] Compiling 313 source files to D:\temp\MSDE20~1\HIBERN~1.0\build\classes
[javac] D:\temp\MSDE20~1\HIBERN~1.0\build\gensrc\org\hibernate\hql\antlr\HqlBaseParser.java:164: cannot resolve symb
ol
[javac] symbol : method recover (antlr.RecognitionException,antlr.collections.impl.BitSet)
[javac] location: class org.hibernate.hql.antlr.HqlBaseParser
[javac] recover(ex,_tokenSet_0);
[javac] ^
[javac] D:\temp\MSDE20~1\HIBERN~1.0\build\gensrc\org\hibernate\hql\antlr\HqlBaseParser.java:188: cannot resolve symbol
[javac] symbol : method recover (antlr.RecognitionException,antlr.collections.impl.BitSet)
[javac] location: class org.hibernate.hql.antlr.HqlBaseParser
[javac] recover(ex,_tokenSet_0);
[javac] ^
[javac] D:\temp\MSDE20~1\HIBERN~1.0\build\gensrc\org\hibernate\hql\antlr\HqlBaseParser.java:212: cannot resolve symbol
[javac] symbol : method recover (antlr.RecognitionException,antlr.collections.impl.BitSet)
[javac] location: class org.hibernate.hql.antlr.HqlBaseParser
[javac] recover(ex,_tokenSet_0);
[javac] ^
[javac] D:\temp\MSDE20~1\HIBERN~1.0\build\gensrc\org\hibernate\hql\antlr\HqlBaseParser.java:236: cannot resolve symbol
.....


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 25, 2005 9:36 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Your classpath / ant distro is wrong.
And 2.1.8 does not use antlr, so there must be something else.

_________________
Emmanuel


Top
 Profile  
 
 Post subject: checkstyletask.properties and clovertasks not found ???
PostPosted: Sat Sep 10, 2005 3:12 am 
Newbie

Joined: Sat Sep 10, 2005 3:05 am
Posts: 6
Location: Paris
same problem :

Buildfile: build.xml
[taskdef] Could not load definitions from resource checkstyletask.properties. It could not be found.
[taskdef] Could not load definitions from resource clovertasks. It could not be found.

with W2000, ant 1.6.5, JDK 1.5, and Hibernate 3.0.5 and trying the example from page :
http://www.hibernate.org/152.html

any clue ?
any explaination of what it may come from ?
(it is grrrrr to be stuck on day 1 of hibernate start...)

Antoine


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 10, 2005 4:40 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
It's just a warning.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 17, 2006 11:44 am 
Newbie

Joined: Fri Mar 17, 2006 11:38 am
Posts: 1
I noticed that you get this error (see below) if you just type

>ant

rather than

>ant eg

when running the initial example application. Running the correct command worked for me!! Hope this helps someone.


[$]/data/progs/hibernate-3.1% ant

Buildfile: build.xml
[taskdef] Could not load definitions from resource checkstyletask.properties. It could not be found.
[taskdef] Could not load definitions from resource clovertasks. It could not be found.

splash:

init:
[echo] Build Hibernate-3.1.2 (2006-03-17 03:33:00)
[echo] JDK version: 1.4

init.antlr:

antlr:
[antlrtask] Exception in thread "main" java.lang.NoClassDefFoundError: antlr/Tool

BUILD FAILED
/data/progs/hibernate-3.1/build.xml:180: ANTLR returned: 1


Top
 Profile  
 
 Post subject: Re: how to correct these build errors?
PostPosted: Fri Jun 08, 2007 5:25 am 
Newbie

Joined: Fri Jun 08, 2007 4:55 am
Posts: 2
Hi guys,
both ways are not working for me..

I got these ....

hibernate-3.2>ant
Buildfile: build.xml
[taskdef] Could not load definitions from resource clovertasks. It could not b
e found.

splash:

init:
[echo] Build Hibernate-3.2.4.sp1 (2007-06-08 04:47:51)
[echo] JDK version: 1.6

init.antlr:

antlr:
[antlrtask] java.lang.NoClassDefFoundError: antlr/Tool
[antlrtask] Exception in thread "main"

BUILD FAILED
C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\build.xml:171
: ANTLR returned: 1

and these...
C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2>ant eg
Buildfile: build.xml
[taskdef] Could not load definitions from resource clovertasks. It could not b
e found.

eg:
[javac] Compiling 8 source files to C:\Documents and Settings\Administrator\
Desktop\tmp1\hibernate-3.2\build\eg
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:10: cannot find symbol
[javac] symbol : class FetchMode
[javac] location: package org.hibernate
[javac] import org.hibernate.FetchMode;
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:11: cannot find symbol
[javac] symbol : class FlushMode
[javac] location: package org.hibernate
[javac] import org.hibernate.FlushMode;
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:12: cannot find symbol
[javac] symbol : class LockMode
[javac] location: package org.hibernate
[javac] import org.hibernate.LockMode;
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:13: cannot find symbol
[javac] symbol : class Session
[javac] location: package org.hibernate
[javac] import org.hibernate.Session;
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:14: cannot find symbol
[javac] symbol : class SessionFactory
[javac] location: package org.hibernate
[javac] import org.hibernate.SessionFactory;
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:15: cannot find symbol
[javac] symbol : class Transaction
[javac] location: package org.hibernate
[javac] import org.hibernate.Transaction;
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:16: package org.hibernate.cfg does not exist
[javac] import org.hibernate.cfg.Configuration;
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:17: package org.hibernate.cfg does not exist
[javac] import org.hibernate.cfg.Environment;
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:18: package org.hibernate.criterion does not e
xist
[javac] import org.hibernate.criterion.Example;
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:19: package org.hibernate.criterion does not e
xist
[javac] import org.hibernate.criterion.Expression;
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:20: package org.hibernate.criterion does not e
xist
[javac] import org.hibernate.criterion.MatchMode;
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:30: cannot find symbol
[javac] symbol : class SessionFactory
[javac] location: class org.hibernate.auction.Main
[javac] private SessionFactory factory;
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:38: cannot find symbol
[javac] symbol : class Session
[javac] location: class org.hibernate.auction.Main
[javac] Session s = factory.openSession();
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:39: cannot find symbol
[javac] symbol : class Transaction
[javac] location: class org.hibernate.auction.Main
[javac] Transaction tx=null;
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:81: cannot find symbol
[javac] symbol : class Session
[javac] location: class org.hibernate.auction.Main
[javac] Session s = factory.openSession();
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:82: cannot find symbol
[javac] symbol : class Transaction
[javac] location: class org.hibernate.auction.Main
[javac] Transaction tx=null;
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:84: cannot find symbol
[javac] symbol : variable FlushMode
[javac] location: class org.hibernate.auction.Main
[javac] s.setFlushMode(FlushMode.NEVER); //entirely opti
onal!!
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:123: cannot find symbol
[javac] symbol : class Session
[javac] location: class org.hibernate.auction.Main
[javac] Session s = factory.openSession();
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:124: cannot find symbol
[javac] symbol : class Transaction
[javac] location: class org.hibernate.auction.Main
[javac] Transaction tx=null;
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:128: cannot find symbol
[javac] symbol : variable LockMode
[javac] location: class org.hibernate.auction.Main
[javac] s.lock(item, LockMode.NONE);
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:129: cannot find symbol
[javac] symbol : variable LockMode
[javac] location: class org.hibernate.auction.Main
[javac] s.lock(bidder, LockMode.NONE);
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:156: cannot find symbol
[javac] symbol : class Session
[javac] location: class org.hibernate.auction.Main
[javac] Session s = factory.openSession();
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:157: cannot find symbol
[javac] symbol : class Transaction
[javac] location: class org.hibernate.auction.Main
[javac] Transaction tx=null;
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:180: cannot find symbol
[javac] symbol : class Session
[javac] location: class org.hibernate.auction.Main
[javac] Session s = factory.openSession();
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:181: cannot find symbol
[javac] symbol : class Transaction
[javac] location: class org.hibernate.auction.Main
[javac] Transaction tx=null;
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:206: cannot find symbol
[javac] symbol : class Session
[javac] location: class org.hibernate.auction.Main
[javac] Session s = factory.openSession();
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:207: cannot find symbol
[javac] symbol : class Transaction
[javac] location: class org.hibernate.auction.Main
[javac] Transaction tx=null;
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:213: cannot find symbol
[javac] symbol : variable FetchMode
[javac] location: class org.hibernate.auction.Main
[javac] .setFetchMode("auctions", FetchMode.JOIN
)
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:212: cannot find symbol
[javac] symbol : variable Expression
[javac] location: class org.hibernate.auction.Main
[javac] .add( Expression.eq("id", sellerId) )
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:246: cannot find symbol
[javac] symbol : class Session
[javac] location: class org.hibernate.auction.Main
[javac] Session s = factory.openSession();
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:247: cannot find symbol
[javac] symbol : class Transaction
[javac] location: class org.hibernate.auction.Main
[javac] Transaction tx=null;
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:253: cannot find symbol
[javac] symbol : variable MatchMode
[javac] location: class org.hibernate.auction.Main
[javac] .enableLike(MatchMode.ANYWHERE)
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:252: cannot find symbol
[javac] symbol : variable Example
[javac] location: class org.hibernate.auction.Main
[javac] .add( Example.create(item)
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:284: cannot find symbol
[javac] symbol : class Session
[javac] location: class org.hibernate.auction.Main
[javac] Session s = factory.openSession();
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:285: cannot find symbol
[javac] symbol : class Transaction
[javac] location: class org.hibernate.auction.Main
[javac] Transaction tx = s.beginTransaction();
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:361: cannot find symbol
[javac] symbol : class Configuration
[javac] location: class org.hibernate.auction.Main
[javac] Configuration cfg = new Configuration()
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:365: cannot find symbol
[javac] symbol : variable Environment
[javac] location: class org.hibernate.auction.Main
[javac] .setProperty(Environment.HBM2DDL_AUTO, "create")
;
[javac] ^
[javac] C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\e
g\org\hibernate\auction\Main.java:361: cannot find symbol
[javac] symbol : class Configuration
[javac] location: class org.hibernate.auction.Main
[javac] Configuration cfg = new Configuration()
[javac] ^
[javac] 38 errors

BUILD FAILED
C:\Documents and Settings\Administrator\Desktop\tmp1\hibernate-3.2\build.xml:410
: Compile failed; see the compiler error output for details.


Please help ...
TIA


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 16 posts ]  Go to page 1, 2  Next

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.