My OJB.properties is just in the working directory of my program and 
it's finding it. So change to this directory before invoking your 
program. I'm using ant also for invoking my program, there you have a 
parameter 'dir' where you can specify the working directory:

    <property name="dev.server.run.dir" value="${basedir}/run/server"/>  
<!-- server home -->
...
    <!-- Run OJB in server mode -->
    <target name="runServer">
        <java 
classname="org.apache.ojb.broker.server.PersistenceBrokerServer"
              fork="yes"
              dir="${dev.server.run.dir}"
              failonerror="true" >
            <classpath>
                <pathelement path="${dev.classes.dir}"/>
                <fileset dir="${dev.jar.dir}">
                    <include name="**/*.jar"/>
                    <include name="**/*.zip"/>
                </fileset>
            </classpath>
            <arg line="repository.xml"></arg>
        </java>
    </target>

/olaf


[EMAIL PROTECTED] wrote:

>Hello,
>
>My program doesn't find the OJB.properties file.
>
>Where does it look for the path?
>How can I tell it to take another paht?
>
>
>Thank you
>Sylvain Thevoz
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>


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

Reply via email to