import existing package fails

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

import existing package fails

Patrick-4
OrderServices.java has this import directive
import org.ofbiz.product.store.ProductStoreWorker;

If I copy the import to PartyServices.java the compiler complains it
doesn't know about the package.
Is there a different import statement that would work?

PartyServices.java:145: package org.ofbiz.product.store does not exist
[javac15] import org.ofbiz.product.store.ProductStoreWorker;

Thanks
Patrick
Reply | Threaded
Open this post in threaded view
|

Re: import existing package fails

Jacques Le Roux
Administrator
As you build with ant it must know how to build, put
    <fileset dir="../product/build/lib" includes="*.jar"/>
in the party build.xml file.

Note that this introduces a dependency from party to product component.
I did not try and this will maybe not work because the product jar file must exist and if you look at the application build.xml
party is called before...

This is why it's far better to use services when possible.

Jacques

From: "Patrick" <[hidden email]>

> OrderServices.java has this import directive
> import org.ofbiz.product.store.ProductStoreWorker;
>
> If I copy the import to PartyServices.java the compiler complains it
> doesn't know about the package.
> Is there a different import statement that would work?
>
> PartyServices.java:145: package org.ofbiz.product.store does not exist
> [javac15] import org.ofbiz.product.store.ProductStoreWorker;
>
> Thanks
> Patrick
>