Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java program Compiling using Maven

807580Sep 23 2009 — edited Oct 9 2009
Hi,

I am upgrading 1.4 to 1.5 java. And in my local pc i have compiled programs and able to eploy the application. But the problem is in server when i try to compile using maven it gives a compilation error.

If you are saying that it is an issue of maven then also i wanted to discuss this strange issue here.
 /usr/build/Application/java/com/sql/DataStoreInterface.java:686: warning: unmappable character for encoding UTF8
    [javac] �* Inserts a blank row at the specified position of the DataStore's result set buffer. Returns the number of the row added.
The statement is commented but the compiler is not identified the same. When i checked encoding type using file --mime {filename} i got it like text/x-java; charset=iso-8859-1. This is not the case for all some java file types are text/x-c++; charset=us-ascii but that is not giving error.

One more issue is elicited below.
] cast to java.lang.Object for a varargs call
    [javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning
    [javac]                     meth.invoke(comp, n);
    [javac]                                       ^
Can any one suggest how can i solve this two issues.

Thanks
Rasa.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 6 2009
Added on Sep 23 2009
15 comments
655 views