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 Yvon Thoraval <yv...@mac.com> on 2004/09/16 21:01:34 UTC

[newbie] ojb build failed on MacOS X.3.5

Hey all,

new to ojb, i do have some experience with hsqldb and plan to migrate 
from sql to oql.

then i wanted to follow the quickstart at your web site and install 
db-ojb-1.0.rc2.

however i get stuck here about this error message after a :

nord-2-81-57-96-20:~/Desktop/db-ojb-1.0.rc2> sh bin/build.sh

raising this :

> preprocess:
>      [echo] using switches: +JDK13, +JDBC30
>
>
>
> oql:
>
> BUILD FAILED
> file:/Users/yvon/Desktop/db-ojb-1.0.rc2/build.xml:983: 
> /Users/yvon/Desktop/db-ojb-1.0.rc2/src/java/org/apache/ojb/odmg/oql is 
> not a valid directory
>

the lines around 983 are :

     <!-- 
================================================================== -->
     <!-- build OQL Parser classes from oql-ojb.g grammar                
     -->
     <!-- 
================================================================== -->
     <target name="oql" depends="init"
             description="Builds OQL parser sources from ANTLR grammar 
file.">
         <java fork="yes" classname="antlr.Tool" 
dir="${src.java}/org/apache/ojb/odmg/oql"
               taskname="build oql parser" failonerror="true" >		        
                                                    <<<<<-----THIS ONE
             <classpath refid="compilation-classpath"/>
             <arg value="oql-ojb.g" />
         </java>
     </target>

i should say i had to make a "mkdir -p src/java/org/apache/ojb/odmg/oql 
      into "ojb home" from a previous error message.

the perms are the following drwxrwxrwx for the whole src and sub dir.

in case you could help jumping from this black hole °;))


Yvon

Re: which tuto to start with ? was (Re: [newbie] ojb build failed on MacOS X.3.5)

Posted by Yvon Thoraval <yv...@mac.com>.
Le 17 sept. 04, à 09:07, Thomas Dudziak a écrit :

> It's the very first one on the site, called "Getting started". You can 
> find it here:
>
> http://db.apache.org/ojb/docu/getting-started.html
>

fine, tanxs °;))

Yvon


Re: which tuto to start with ? was (Re: [newbie] ojb build failed on MacOS X.3.5)

Posted by Thomas Dudziak <to...@first.fhg.de>.
Yvon Thoraval wrote:

> Is somewhere a specific link to this tuto ?

It's the very first one on the site, called "Getting started". You can 
find it here:

http://db.apache.org/ojb/docu/getting-started.html

Tom

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


which tuto to start with ? was (Re: [newbie] ojb build failed on MacOS X.3.5)

Posted by Yvon Thoraval <yv...@mac.com>.
Le 16 sept. 04, à 21:14, Thomas Dudziak a écrit :

> The beginner's tutorial on the OJB website uses this to introduce you 
> to OJB.
>

Is somewhere a specific link to this tuto ?

because i've found :

  A full featured ODMG 3.0 compliant API. (See the  ODMG Tutorial for an 
introduction.)

See JDO tutorial for an introduction to the JDO programming model

See  OTM tutorial for details

See the  Persistence Broker Tutorial for details

because i've used hsqldb, i would start with the last one (?)

is-it the right choice for a beginner ?

which one make use of "ojb-blank.jar which contains a blank OJB project 
to play around with" ?

thanks again

Yvon

junit: BUILD SUCCESSFUL was (Re: [newbie] ojb build failed on MacOS X.3.5)

Posted by Yvon Thoraval <yv...@mac.com>.
Le 16 sept. 04, à 21:14, Thomas Dudziak a écrit :

> If you're about to quickstart with OJB, it would be best if you start 
> with the newest stable version which is 1.0.1 (rc2 is quite old btw).
> Also, with this version you should not need to build OJB from source. 
> Simply download the bin version (with dependencies) from the OJB 
> website. Also helpful is the ojb-blank.jar which contains a blank OJB 
> project to play around with. The beginner's tutorial on the OJB 
> website uses this to introduce you to OJB.
>

i'll dl that version asap

> This might come from a number of things, e.g. problems when unpacking 
> the dist. What Ant version are you using ? You should use a 1.6 
> version (current is 1.6.2 if I'm not mistaken).

i've the probs :

mkdir OJB  in  db-ojb "home"

and then found j2ee.jar  from j2sdkee1.3.1

thanks 4 u'r help °;))

Yvon

Re: [newbie] ojb build failed on MacOS X.3.5

Posted by Thomas Dudziak <to...@first.fhg.de>.
Yvon Thoraval wrote:
> Hey all,
> 
> new to ojb, i do have some experience with hsqldb and plan to migrate 
> from sql to oql.
> 
> then i wanted to follow the quickstart at your web site and install 
> db-ojb-1.0.rc2.

First off, two things:

If you're about to quickstart with OJB, it would be best if you start 
with the newest stable version which is 1.0.1 (rc2 is quite old btw).
Also, with this version you should not need to build OJB from source. 
Simply download the bin version (with dependencies) from the OJB 
website. Also helpful is the ojb-blank.jar which contains a blank OJB 
project to play around with. The beginner's tutorial on the OJB website 
uses this to introduce you to OJB.

> however i get stuck here about this error message after a :
> 
> nord-2-81-57-96-20:~/Desktop/db-ojb-1.0.rc2> sh bin/build.sh
> 
> raising this :
> 
>     preprocess:
>     [echo] using switches: +JDK13, +JDBC30
> 
> 
> 
>     oql:
> 
>     BUILD FAILED
>     file:/Users/yvon/Desktop/db-ojb-1.0.rc2/build.xml:983:
>     /Users/yvon/Desktop/db-ojb-1.0.rc2/src/java/org/apache/ojb/odmg/oql
>     is not a valid directory
> 
> 
> the lines around 983 are :
> 
> <!-- ================================================================== -->
> <!-- build OQL Parser classes from oql-ojb.g grammar -->
> <!-- ================================================================== -->
> <target name="oql" depends="init"
> description="Builds OQL parser sources from ANTLR grammar file.">
> <java fork="yes" classname="antlr.Tool" 
> dir="${src.java}/org/apache/ojb/odmg/oql"
> taskname="build oql parser" failonerror="true" > <<<<<-----THIS ONE
> <classpath refid="compilation-classpath"/>
> <arg value="oql-ojb.g" />
> </java>
> </target>
> 
> i should say i had to make a "mkdir -p src/java/org/apache/ojb/odmg/oql 
> into "ojb home" from a previous error message.
> 
> the perms are the following drwxrwxrwx for the whole src and sub dir.
> 
> in case you could help jumping from this black hole °;))

This might come from a number of things, e.g. problems when unpacking 
the dist. What Ant version are you using ? You should use a 1.6 version 
(current is 1.6.2 if I'm not mistaken).

Tom

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