Link to home
Start Free TrialLog in
Avatar of pboix
pboix

asked on

error: IO exception sun.io.MalformedInputException

I'm trying to compile java program with IBM SDK 142 version in a RedHat 9.0 Linux. When I compile:
 error: IO exception sun.io.MalformedInputException.

The aplicattion runs well in W2000.

I think it's a conversion problem (Linux has UTF-8 encoding by default), but I'm not sure how to solve it.

Thanks

Avatar of riaancornelius
riaancornelius

Hi pboix,
What do you get the error on?

Cheers!
Avatar of Mick Barry
whats the line throwing the exception?
Avatar of pboix

ASKER

Hi both,
Really, when I compile the compiler only shows the line below,
error: IO exception sun.io.MalformedInputException
There is no line.
I developed and compiled  program in W2000, and Red Hat 7 and runs correctly. When I transfer the program to Red Hat 9 fails.
Do you think it's problem of code?
I don't think so,
ASKER CERTIFIED SOLUTION
Avatar of aozarov
aozarov

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pboix

ASKER

The problem was the value of LANG in our system LANG=es_ES@euro in the new system was LANG=es_ES.UTF-8, so seting this value to es_ES@euro there is no problem.
Which is basically chaning your system to not use UTF encoding (so the SDK tools above will work), no?