Ok,
I am finally rolling ... a little bit.

I have the "ojb-blank.jar" and put it into a folder on my drive "C:/OBJ_PLay".

Then according to the directions, I extracted it, and renamed it to 
projectmanager:

eg:
C:/OJB_PLay/projectmanager
  Dir -build
  Dir -lib
  DIR -src
       .classpath
       .project
       build.properties
       build.xml


So I am following docs, and I am here.
I put the mysql-connector under the above -lib directory. (I am using mysql);

Then It gets a little cloudy around the "The only thing you are missing is the 
source code." 
So I downloaded a tutorial, and put this under src:

Which translates to a path of:
C:\OJB_Play\projectmanager\src\java\org\apache\ojb\tutorial1struts
  DeleteProdcutAction.java      
  EditProductAction.java
  ListAllProductsAction.java
  Product.java
  ProductDAO.java
  ProductForm.java
  SaveProductAction.java
  StartupAction.java
  WebappConstants.java


So hopefully this is good enough to get rolling:
then edited my build.properties and here they are:
jcdAlias=default
databaseName=productmanager
databaseUser=lucy
databasePassword=cm

dbmsName=MySQL
jdbcLevel=3.0
jdbcRuntimeDriver=com.mysql.jdbc.Driver
urlProtocol=jdbc
urlSubprotocol=mysql
urlDbalias=//localhost/${databaseName}

torque.database=mysql
torque.database.createUrl=${urlProtocol}:${urlSubprotocol}://localhost/

jar.name=projectmanager.jar

source.dir=src
source.java.dir=${source.dir}/java
source.resource.dir=${source.dir}/resources
source.test.dir=${source.dir}/test
source.schema.dir=${source.dir}/schema

build.dir=build
build.lib.dir=lib
build.classes.dir=${build.dir}/classes/
build.resource.dir=${build.dir}/resources/

target.dir=target

### end build.properties ####
Then I went to build and create and I get this:


$ ant build setup-db

Buildfile: build.xml
Caught exception (org.apache.tools.ant.BuildException) while expanding compile-c
lasspath: C:\OJB_Play\projectmanager\${lib.dir} not found.
Caught exception (org.apache.tools.ant.BuildException) while expanding runtime-c
lasspath: C:\OJB_Play\projectmanager\${lib.dir} not found.

compile:
    [javac] Compiling 9 source files to C:\OJB_Play\projectmanager\build\classes


BUILD FAILED
C:\OJB_Play\projectmanager\build.xml:61: C:\OJB_Play\projectmanager\${lib.dir} n
ot found.

Total time: 3 seconds


Can anyone give me a hand here?

I I do have a classpath set to the following:  "C:\OJB_Play\projectmanager\lib"


Thanks,
Scott







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to