ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Murtuza <khanmurt...@gmail.com>
Subject Re: build error
Date Wed, 02 May 2007 22:17:02 GMT

this is from my build.xml

    <target name="build" description="Compile main source tree java files">
        <mkdir dir="${build.dir}"/>
        <javac destdir="${build.dir}" target="1.5" debug="true"
               deprecation="false" optimize="false" failonerror="true">
            <src path="${src.dir}"/>
            <classpath refid="master-classpath"/>
        </javac>
    </target>






Scot P. Floess wrote:
> 
> Can you provide the javac target in your email?  Looks like you may be 
> setting the target to something other than JDK 1.5+ - something like:
> 
> <javac target="1.4".../>
> 
> 
> 
> Murtuza wrote:
>> Although my java version is "1.5.0_09" I am getting the following error.
>>
>>
>>     [javac] Compiling 3 source files to
>> /home/v884257/FinalAjaxFileUpload/webapp/WEB-INF/classes
>>     [javac] ----------
>>     [javac] 1. ERROR in
>> /home/v884257/FinalAjaxFileUpload/src/com/superpages/upload/business/UploadServiceImpl.java
>>     [javac]  (at line 11)
>>     [javac]     import java.util.UUID;
>>     [javac]            ^^^^^^^^^^^^^^
>>     [javac] The import java.util.UUID cannot be resolved
>>     [javac] ----------
>>     [javac] 2. ERROR in
>> /home/v884257/FinalAjaxFileUpload/src/com/superpages/upload/business/UploadServiceImpl.java
>>     [javac]  (at line 43)
>>     [javac]     UUID userId = UUID.randomUUID();
>>     [javac]     ^^^^
>>     [javac] UUID cannot be resolved to a type
>>     [javac] ----------
>>     [javac] 3. ERROR in
>> /home/v884257/FinalAjaxFileUpload/src/com/superpages/upload/business/UploadServiceImpl.java
>>     [javac]  (at line 43)
>>     [javac]     UUID userId = UUID.randomUUID();
>>     [javac]                   ^^^^
>>     [javac] UUID cannot be resolved
>>     [javac] ----------
>>     [javac] ----------
>>     [javac] 4. ERROR in
>> /home/v884257/FinalAjaxFileUpload/src/com/superpages/upload/db/VideoManagerDaoJdbc.java
>>     [javac]  (at line 57)
>>     [javac]     Map<String,String> inParameters = new
>> HashMap<String,String>();
>>     [javac]     ^^^
>>     [javac] The type Map is not generic; it cannot be parameterized with
>> arguments <String, String>
>>     [javac] ----------
>>     [javac] 5. ERROR in
>> /home/v884257/FinalAjaxFileUpload/src/com/superpages/upload/db/VideoManagerDaoJdbc.java
>>     [javac]  (at line 57)
>>     [javac]     Map<String,String> inParameters = new
>> HashMap<String,String>();
>>     [javac]         ^^^^^^^^^^^^^
>>     [javac] Syntax error, parameterized types are only available if
>> source
>> level is 5.0
>>     [javac] ----------
>>     [javac] 6. ERROR in
>> /home/v884257/FinalAjaxFileUpload/src/com/superpages/upload/db/VideoManagerDaoJdbc.java
>>     [javac]  (at line 57)
>>     [javac]     Map<String,String> inParameters = new
>> HashMap<String,String>();
>>     [javac]                                           ^^^^^^^
>>     [javac] The type HashMap is not generic; it cannot be parameterized
>> with
>> arguments <String, String>
>>     [javac] ----------
>>     [javac] 7. ERROR in
>> /home/v884257/FinalAjaxFileUpload/src/com/superpages/upload/db/VideoManagerDaoJdbc.java
>>     [javac]  (at line 57)
>>     [javac]     Map<String,String> inParameters = new
>> HashMap<String,String>();
>>     [javac]                                                  
>> ^^^^^^^^^^^^^
>>     [javac] Syntax error, parameterized types are only available if
>> source
>> level is 5.0
>>     [javac] ----------
>>     [javac] 8. ERROR in
>> /home/v884257/FinalAjaxFileUpload/src/com/superpages/upload/db/VideoManagerDaoJdbc.java
>>     [javac]  (at line 71)
>>     [javac]     int result = (Integer)results.get("success");
>>     [javac]         ^^^^^^
>>     [javac] Type mismatch: cannot convert from Integer to int
>>     [javac] ----------
>>     [javac] ----------
>>     [javac] 9. ERROR in
>> /home/v884257/FinalAjaxFileUpload/src/com/superpages/upload/web/controller/UploadFilesController.java
>>     [javac]  (at line 245)
>>     [javac]     final Map < Object, Object > model = new HashMap <
>> Object,
>> Object > ();
>>     [javac]           ^^^
>>     [javac] The type Map is not generic; it cannot be parameterized with
>> arguments <Object, Object>
>>     [javac] ----------
>>     [javac] 10. ERROR in
>> /home/v884257/FinalAjaxFileUpload/src/com/superpages/upload/web/controller/UploadFilesController.java
>>     [javac]  (at line 245)
>>     [javac]     final Map < Object, Object > model = new HashMap <
>> Object,
>> Object > ();
>>     [javac]                 ^^^^^^^^^^^^^^
>>     [javac] Syntax error, parameterized types are only available if
>> source
>> level is 5.0
>>     [javac] ----------
>>     [javac] 11. ERROR in
>> /home/v884257/FinalAjaxFileUpload/src/com/superpages/upload/web/controller/UploadFilesController.java
>>     [javac]  (at line 245)
>>     [javac]     final Map < Object, Object > model = new HashMap <
>> Object,
>> Object > ();
>>     [javac]                
>>     [javac]                               ^^^^^^^
>>     [javac] The type HashMap is not generic; it cannot be parameterized
>> with
>> arguments <Object, Object>
>>     [javac] ----------
>>     [javac] 12. ERROR in
>> /home/v884257/FinalAjaxFileUpload/src/com/superpages/upload/web/controller/UploadFilesC
>>     [javac] ontroller.java
>>     [javac]  (at line 245)
>>     [javac]     final Map < Object, Object > model = new HashMap <
>> Object,
>> Object > ();
>>     [javac]                                                       
>> ^^^^^^^^^^^^^^
>>     [javac] Syntax error, parameterized types are only available if
>> source
>> level is 5.0
>>     [javac] ----------
>>     [javac] ----------
>>     [javac] 13. WARNING in
>> /home/v884257/FinalAjaxFileUpload/src/be/telio/mediastore/ui/upload/UploadListener.java
>>     [javac]  (at line 68)
>>     [javac]     private long getDelta()
>>     [javac]                  ^^^^^^^^^^
>>     [javac] The method getDelta() from the type UploadListener is never
>> used
>> locally
>>     [javac] ----------
>>     [javac] 13 problems (12 errors, 1 warning)
>>
>>   
> 
> -- 
> Scot P. Floess
> 27 Lake Royale
> Louisburg, NC  27549
> 
> 252-478-8087 (Home)
> 919-392-6730 (Work)
> 
> Chief Architect JPlate  http://sourceforge.net/projects/jplate
> Chief Architect JavaPIM http://sourceforge.net/projects/javapim
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/build-error-tf3683054.html#a10295861
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Mime
View raw message