Do you know the syntax? is it something like encoding="<encoding standard>"?
Den 7/5/2006, skrev "Jeffrey E Care" <[EMAIL PROTECTED]>: >You should be able to set the encoding javac uses to read your files; that >would only require updating your build.xml. > >____________________________________________________________________________________________ > > >Jeffrey E. (Jeff) Care >[EMAIL PROTECTED] >IBM WebSphere Application Server Development >WAS Pyxis Lead Release Engineer > > > > > > >"Fredrik Andersson" <[EMAIL PROTECTED]> >07/05/2006 09:34 AM >Please respond to >"Ant Users List" <user@ant.apache.org> > > >To >"Ant Users List" <user@ant.apache.org> >cc > >Subject >Re: Migration problem, Windows to Linux > > > > > > >Hi > >It turned out that my JAVA_HOME variabel was not set. I pointed it to my >Java 5.0 installation and now it spews out a ton of these messages. > >[javac] >/root/smc_projekt/Application/src/java/nu/absmc/action/ForsenadeController.java:10: >warning: unmappable character for encoding UTF8 > [javac] * Controller class for the F�rsenade portlet. > [javac] ^ > [javac] >/root/smc_projekt/Application/src/java/nu/absmc/action/ForsenadeController.java:38: >warning: unmappable character for encoding UTF8 > > >Seems to be a problem with the swedish chars. Can I fix this in a simple >way or do I have to edit and save all file over and over? > >Den 7/5/2006, skrev "Petar Tahchiev" <[EMAIL PROTECTED]>: > >>On 05/07/06, Fredrik Andersson <[EMAIL PROTECTED]> wrote: >>> Hi all >>> >>> I'm currently trying to migrate a J2EE project from a Windows platform >>> to a Linux platform. >>> >>> I have cofigured the build.xml file accordingly to my setup on the >linux >>> platform. I have the same java setup on the linux server but when I try >>> to compile I get the following messages from ant. >>> >>> [javac] Compiling 81 source files to >>> /root/smc_projekt/ant/war/WEB-INF/classes >>> [javac] error: IO exception sun.io.MalformedInputException >>> [javac] >>> >/root/smc_projekt/Application/src/java/nu/absmc/action/LanguageController.java:67: >>> illegal character: \64 >>> [javac] @Override >>> [javac] ^ >>> [javac] >>> >/root/smc_projekt/Application/src/java/nu/absmc/action/LanguageController.java:76: >>> illegal character: \64 >>> [javac] @Override >>> [javac] ^ >>> [javac] >>> >/root/smc_projekt/Application/src/java/nu/absmc/action/LanguageController.java:81: >>> <identifier> expected >>> [javac] >>> [javac] ^ >>> [javac] error: IO exception sun.io.MalformedInputException >>> [javac] error: IO exception sun.io.MalformedInputException >>> [javac] error: IO exception sun.io.MalformedInputException >>> [javac] error: IO exception sun.io.MalformedInputException >>> [javac] >>> >/root/smc_projekt/Application/src/java/nu/absmc/type/LanguageBean.java:91: >>> illegal character: \64 >>> [javac] @Override >>> [javac] ^ >>> [javac] >>> >/root/smc_projekt/Application/src/java/nu/absmc/type/LanguageBean.java:103: >>> <identifier> expected >>> [javac] ^ >>> [javac] 10 errors >>> >>> >>> Now these are files that compiles perfectly on windows. What can be the >>> source of the problem? I'm clueless. >>> >>> Thanks in advance =) >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>As I see (from the @Override and <Identifier> clauses) your source >>code is written in Java 1.5. And the compiler is complaining because >>he does not identify those clauses. First of all you should check your >>$JAVA_HOME to see what version of javac you are using. Also you could >>specify the >>source="1.5" directive to the javac task. >> >>Please try these and repost to tell us if those had any effect. In >>addition to post here what $JAVA_HOME env variable you have. >> >>Hope that helps. >> >>-- >>Regards, Petar! >>Karlovo, Bulgaria. >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]