Either you don't change the characters, and set the encoding properly
in <javac>, <javadoc>, etc... to whatever the encoding defaults to on
Windows, or you change your files to be UTF8 correct (using an escape
sequence for the proper swedish chars), which seems to be the default
on Linux, or finally you don't use the swedish chars, and use the
ASCII approximation. To do the later, you could use tr on Linux (the
translate command) to replace all your swedish o's and O's with the
equivalent ASCII o's and O's. You'd need to look up tr's man page to
see how to specify chars in above 127 (there must be some escape
sequence).

Another option would be to use <copy> with an input and output
encoding, on Windows, so the input one defaults to swedish, and you
specify UTF8 as output encoding. You'll get the escape sequences for
the swedish chars. --DD

On 7/5/06, Fredrik Andersson <[EMAIL PROTECTED]> wrote:
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]


Reply via email to