ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <flo...@mindspring.com>
Subject Re: build error
Date Wed, 02 May 2007 20:47:06 GMT
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


Mime
View raw message