-->
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.  [ 3 posts ] 
Author Message
 Post subject: Hibernate is serarching JRE In Oralce
PostPosted: Thu Mar 15, 2007 10:42 pm 
Newbie

Joined: Thu Mar 15, 2007 10:05 pm
Posts: 1
Location: New YOrk
Hi

I M NEw to hibernate. I was setting hibernate for Oracle DataBase 9i. Ans I m getting this problem. It is lookinh for JRE. I even set JAVA_HOME environment variables. I m getting still same problem

Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\Documents and Settings\Administrator>hibernate
'hibernate' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\Administrator>cd..

C:\Documents and Settings>cd..

C:\>cd hibernate

C:\Hibernate>cd hibernate-3.2

C:\Hibernate\hibernate-3.2>build eg

C:\Hibernate\hibernate-3.2>java -cp "lib/ant-launcher-1.6.5.jar" org.apache.tool
s.ant.launch.Launcher -lib lib eg
Unable to locate tools.jar. Expected to find it in C:\Program Files\Oracle\jre\1
.3.1\lib\tools.jar
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:\Hibernate\hibernate-3.2\build\eg
[javac] Modern compiler not found - looking for classic compiler

BUILD FAILED
C:\Hibernate\hibernate-3.2\build.xml:409: Cannot use classic compiler, as it is
not available. A common solution is to set the environment variable JAVA_HOME t
o your jdk directory.

Total time: 1 second

C:\Hibernate\hibernate-3.2>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 15, 2007 10:49 pm 
Newbie

Joined: Tue Mar 13, 2007 9:49 pm
Posts: 8
It wasn't problem of JAVA_HOME environment variable, but the PATH variable.

After you installed Oracle 9i, it will automatically append the JDK location of Oracle (jdk 1.3.X) to the "PATH" environment variable.

Simply modify the PATH value, it should work fine.

To validate, you could try to run

Quote:
java -version
in command prompt


Please rate me if it helps ^V^


Top
 Profile  
 
 Post subject: Re: Hibernate is serarching JRE In Oralce
PostPosted: Fri Mar 16, 2007 6:44 am 
Regular
Regular

Joined: Fri May 12, 2006 4:05 am
Posts: 106
preetisk wrote:
I M NEw to hibernate. I was setting hibernate for Oracle DataBase 9i. Ans I m getting this problem. It is lookinh for JRE.

No, it is not! It's looking for a jdk, a simple jre won't be sufficient.
You're sure you set JAVA_HOME to your jdk-location, not to the jre??


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.