Compile failed

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

Compile failed

dhiraj.g
Hi
I make a two  java file in  src folder of my own developed module(path = /home/pks/Desktop/Software/workspace/apache-ofbiz-10.04). when i start the ./ant command.
It gives the following error.

[javac16] Compiling 2 source files to /home/pks/Desktop/Software/workspace/apache-ofbiz-10.04/applications/enquiry/build/classes
  [javac16] /home/pks/Desktop/Software/workspace/apache-ofbiz-10.04/applications/enquiry/src/org/ofbiz/enquiry/loi/AddLoi.java:19: package org.ofbiz.webapp.control does not exist
  [javac16] import org.ofbiz.webapp.control.RequestHandler;
  [javac16]                                ^
  [javac16] 1 error

BUILD FAILED
/home/pks/Desktop/Software/workspace/apache-ofbiz-10.04/build.xml:186: The following error occurred while executing this line:
/home/pks/Desktop/Software/workspace/apache-ofbiz-10.04/applications/build.xml:67: The following error occurred while executing this line:
/home/pks/Desktop/Software/workspace/apache-ofbiz-10.04/macros.xml:27: The following error occurred while executing this line:
/home/pks/Desktop/Software/workspace/apache-ofbiz-10.04/common.xml:93: Compile failed; see the compiler error output for details.

and i checked this four files but i could not understand by which i got this error .

 I am waiting for quick responce....................................

Thanks
Dhiraj Gupta
Dhiraj Gupta
Reply | Threaded
Open this post in threaded view
|

Re: Compile failed

rrhati2010
Hi,

Check your "enquiry" component's build.xml file for including the build path of "webapp" component present inside framework.
Include these lines in <path id ..> tag
 <fileset dir="../../framework/webapp/lib" includes="*.jar"/>
        <fileset dir="../../framework/webapp/build/lib" includes="*.jar"/>

Regards,
RRH
RRH