You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Adam Griffiths <pu...@adam-griffiths.co.uk> on 2003/03/04 19:33:03 UTC

RE: Does db-ojb-1.0.rc1.tgz depend on j2ee?

Hi,
I just downloaded db-ojb-1.0.rc1-src.tgz and db-ojb-1.0.rc1.tgz and
installed them on my windows 2000 machine which has j2sdk1.4.1_01 set up on
it. Running "bin\build.bat junit" and "bin\build prepare-tutorials" gives
the following error:

BUILD FAILED
file:C:/db-ojb-1.0.rc1/build.xml:184: j2ee.jar is missing! Please get it
from ht tp://java.sun.com/j2ee/. Put it in lib or have the ant property
j2ee.jars point at this jar file.

I can't find anywhere where is says ojb is dependant on j2ee. Is it? Or what
am I doing wrong. What I would like to do is take a look at tutorial and
then write a test (stand alone) program.

Any help or advice would be greatly applicated

Adam


________________________________________________________
s_p_a_m_t_r_a_p       from:ignoreme@adam-griffiths.co.uk
Do not email the above address or remove these two lines 



RE: Does db-ojb-1.0.rc1.tgz depend on j2ee?

Posted by Yuji Shinozaki <ys...@virginia.edu>.
I believe it is not sufficient to set your CLASSPATH environment, as that
will only affect the CLASSPATH that ant itself sees and not the classpath
that ant sets when it invokes javac.

You will need to put j2ee.jar into the ./lib directory (where it will be
automatically added to the compilation classpath) OR edit build.properties
and assign ${j2ee.jar} to point to the location of the j2ee.jar file.

Hope this helps,

yuji
----

On Wed, 5 Mar 2003, Adam Griffiths wrote:

> Hi again,
> Thanks for your replies Thomas. I downloaded j2sdkee1.3.1, installed it to
> c:\j2sdkee1.3.1 and set my CLASSPATH to "C:\j2sdkee1.3.1\lib". I tried
> "bin\build prepare-tutorials"  and got the same error as before. I also
> tried copying j2ee.jar to my C:\j2sdk1.4.1_01\lib and
> C:\j2sdk1.4.1_01\lib\ext but neither work. Is there something I'm not
> understanding?
>
> Adam
>
> The error again:
>
> BUILD FAILED
> file:C:/db-ojb-1.0.rc1/build.xml:184: j2ee.jar is missing! Please get it
> from ht
> tp://java.sun.com/j2ee/. Put it in lib or have the ant property j2ee.jars
> point
> at this jar file.
>
> ________________________________________________________
> s_p_a_m_t_r_a_p       from:ignoreme@adam-griffiths.co.uk
> Do not email the above address or remove these two lines
>
> -----Original Message-----
> From: thma32@web.de [mailto:thma32@web.de]
> Sent: 05 March 2003 06:55
> To: OJB Users List
> Subject: Re: Does db-ojb-1.0.rc1.tgz depend on j2ee?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>

Yuji Shinozaki	                        Computer Systems Senior Engineer
ys2n@virginia.edu			Advanced Technologies Group
(804)924-7171				Information Technology & Communication
http://www.people.virginia.edu/~ys2n    University of Virginia


RE: Does db-ojb-1.0.rc1.tgz depend on j2ee?

Posted by luis barreiro <lb...@interacciona.net>.

	Add to your classpath C:\j2sdkee1.3.1\lib\j2ee.jar. If you add to your
classpath a directory, it only work if that
	directory contains .class files, not .jar files.

	Good luck, Adam!!!!


-----Mensaje original-----
De: Adam Griffiths [mailto:drop@adam-griffiths.co.uk]
Enviado el: miƩrcoles 5 de marzo de 2003 12:24
Para: 'OJB Users List'; thma@apache.org
Asunto: RE: Does db-ojb-1.0.rc1.tgz depend on j2ee?


Hi again,
Thanks for your replies Thomas. I downloaded j2sdkee1.3.1, installed it to
c:\j2sdkee1.3.1 and set my CLASSPATH to "C:\j2sdkee1.3.1\lib". I tried
"bin\build prepare-tutorials"  and got the same error as before. I also
tried copying j2ee.jar to my C:\j2sdk1.4.1_01\lib and
C:\j2sdk1.4.1_01\lib\ext but neither work. Is there something I'm not
understanding?

Adam

The error again:

BUILD FAILED
file:C:/db-ojb-1.0.rc1/build.xml:184: j2ee.jar is missing! Please get it
from ht
tp://java.sun.com/j2ee/. Put it in lib or have the ant property j2ee.jars
point
at this jar file.

________________________________________________________
s_p_a_m_t_r_a_p       from:ignoreme@adam-griffiths.co.uk
Do not email the above address or remove these two lines

-----Original Message-----
From: thma32@web.de [mailto:thma32@web.de]
Sent: 05 March 2003 06:55
To: OJB Users List
Subject: Re: Does db-ojb-1.0.rc1.tgz depend on j2ee?



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


RE: Does db-ojb-1.0.rc1.tgz depend on j2ee?

Posted by Adam Griffiths <dr...@adam-griffiths.co.uk>.
Hi again,
Thanks for your replies Thomas. I downloaded j2sdkee1.3.1, installed it to
c:\j2sdkee1.3.1 and set my CLASSPATH to "C:\j2sdkee1.3.1\lib". I tried
"bin\build prepare-tutorials"  and got the same error as before. I also
tried copying j2ee.jar to my C:\j2sdk1.4.1_01\lib and
C:\j2sdk1.4.1_01\lib\ext but neither work. Is there something I'm not
understanding?

Adam

The error again:

BUILD FAILED
file:C:/db-ojb-1.0.rc1/build.xml:184: j2ee.jar is missing! Please get it
from ht
tp://java.sun.com/j2ee/. Put it in lib or have the ant property j2ee.jars
point
at this jar file.

________________________________________________________
s_p_a_m_t_r_a_p       from:ignoreme@adam-griffiths.co.uk
Do not email the above address or remove these two lines 

-----Original Message-----
From: thma32@web.de [mailto:thma32@web.de] 
Sent: 05 March 2003 06:55
To: OJB Users List
Subject: Re: Does db-ojb-1.0.rc1.tgz depend on j2ee?



Re: Does db-ojb-1.0.rc1.tgz depend on j2ee?

Posted by Thomas Mahler <th...@web.de>.
Hi Adam

It's a compiletime depency. So if your application does not use any J2EE 
features there's no problem at runtime without that jar file.

cheers,
Thomas

Adam Griffiths wrote:
> I only wish to map a the objects of a standalone application to a local
> database. Is j2ee still required for me? I don't think I need and j2ee
> functionality. Am I mistaken?
> 
> Many thanks
> 
> Adam
> 
> ________________________________________________________
> s_p_a_m_t_r_a_p       from:ignoreme@adam-griffiths.co.uk
> Do not email the above address or remove these two lines 
> 
> -----Original Message-----
> From: thma32@web.de [mailto:thma32@web.de] 
> Sent: 04 March 2003 19:18
> To: OJB Users List
> Subject: Re: Does db-ojb-1.0.rc1.tgz depend on j2ee?
> 
> 
> Hi Adam,
> 
> The message you see is not lying! You really have to place j2ee.jar into 
>   your classpath.
> 
> The OJB dependencies are listed here:
> http://db.apache.org/ojb/dependencies.html
> 
> cheers,
> Thomas
> 
> Adam Griffiths wrote:
> 
>>Hi,
>>I just downloaded db-ojb-1.0.rc1-src.tgz and db-ojb-1.0.rc1.tgz and 
>>installed them on my windows 2000 machine which has j2sdk1.4.1_01 set 
>>up on it. Running "bin\build.bat junit" and "bin\build 
>>prepare-tutorials" gives the following error:
>>
>>BUILD FAILED
>>file:C:/db-ojb-1.0.rc1/build.xml:184: j2ee.jar is missing! Please get 
>>it from ht tp://java.sun.com/j2ee/. Put it in lib or have the ant 
>>property j2ee.jars point at this jar file.
>>
>>I can't find anywhere where is says ojb is dependant on j2ee. Is it? 
>>Or what am I doing wrong. What I would like to do is take a look at 
>>tutorial and then write a test (stand alone) program.
>>
>>Any help or advice would be greatly applicated
>>
>>Adam
>>
>>
>>________________________________________________________
>>s_p_a_m_t_r_a_p       from:ignoreme@adam-griffiths.co.uk
>>Do not email the above address or remove these two lines
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
>>For additional commands, e-mail: ojb-user-help@db.apache.org
>>
>>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
> 
> 



RE: Does db-ojb-1.0.rc1.tgz depend on j2ee?

Posted by Adam Griffiths <dr...@adam-griffiths.co.uk>.
I only wish to map a the objects of a standalone application to a local
database. Is j2ee still required for me? I don't think I need and j2ee
functionality. Am I mistaken?

Many thanks

Adam

________________________________________________________
s_p_a_m_t_r_a_p       from:ignoreme@adam-griffiths.co.uk
Do not email the above address or remove these two lines 

-----Original Message-----
From: thma32@web.de [mailto:thma32@web.de] 
Sent: 04 March 2003 19:18
To: OJB Users List
Subject: Re: Does db-ojb-1.0.rc1.tgz depend on j2ee?


Hi Adam,

The message you see is not lying! You really have to place j2ee.jar into 
  your classpath.

The OJB dependencies are listed here:
http://db.apache.org/ojb/dependencies.html

cheers,
Thomas

Adam Griffiths wrote:
> Hi,
> I just downloaded db-ojb-1.0.rc1-src.tgz and db-ojb-1.0.rc1.tgz and 
> installed them on my windows 2000 machine which has j2sdk1.4.1_01 set 
> up on it. Running "bin\build.bat junit" and "bin\build 
> prepare-tutorials" gives the following error:
> 
> BUILD FAILED
> file:C:/db-ojb-1.0.rc1/build.xml:184: j2ee.jar is missing! Please get 
> it from ht tp://java.sun.com/j2ee/. Put it in lib or have the ant 
> property j2ee.jars point at this jar file.
> 
> I can't find anywhere where is says ojb is dependant on j2ee. Is it? 
> Or what am I doing wrong. What I would like to do is take a look at 
> tutorial and then write a test (stand alone) program.
> 
> Any help or advice would be greatly applicated
> 
> Adam
> 
> 
> ________________________________________________________
> s_p_a_m_t_r_a_p       from:ignoreme@adam-griffiths.co.uk
> Do not email the above address or remove these two lines
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org



Re: Does db-ojb-1.0.rc1.tgz depend on j2ee?

Posted by Thomas Mahler <th...@web.de>.
Hi Adam,

The message you see is not lying! You really have to place j2ee.jar into 
  your classpath.

The OJB dependencies are listed here:
http://db.apache.org/ojb/dependencies.html

cheers,
Thomas

Adam Griffiths wrote:
> Hi,
> I just downloaded db-ojb-1.0.rc1-src.tgz and db-ojb-1.0.rc1.tgz and
> installed them on my windows 2000 machine which has j2sdk1.4.1_01 set up on
> it. Running "bin\build.bat junit" and "bin\build prepare-tutorials" gives
> the following error:
> 
> BUILD FAILED
> file:C:/db-ojb-1.0.rc1/build.xml:184: j2ee.jar is missing! Please get it
> from ht tp://java.sun.com/j2ee/. Put it in lib or have the ant property
> j2ee.jars point at this jar file.
> 
> I can't find anywhere where is says ojb is dependant on j2ee. Is it? Or what
> am I doing wrong. What I would like to do is take a look at tutorial and
> then write a test (stand alone) program.
> 
> Any help or advice would be greatly applicated
> 
> Adam
> 
> 
> ________________________________________________________
> s_p_a_m_t_r_a_p       from:ignoreme@adam-griffiths.co.uk
> Do not email the above address or remove these two lines 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
> 
>