error: IO exception

Posted on 2005-04-07
Last Modified: 2013-12-29
I'm trying to compile java program with IBM SDK 142 version in a RedHat 9.0 Linux. When I compile:
 error: IO exception

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.


Question by:pboix
    LVL 9

    Expert Comment

    Hi pboix,
    What do you get the error on?

    LVL 92

    Expert Comment

    whats the line throwing the exception?

    Author Comment

    Hi both,
    Really, when I compile the compiler only shows the line below,
    error: IO exception
    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,
    LVL 15

    Accepted Solution

    Read this document: (search for
    it claims that "if your system locale is using a UTF-8 encoding, some SDK |tools might throw a"
    and provides 2 solutions.

    Author Comment

    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.
    LVL 15

    Expert Comment

    Which is basically chaning your system to not use UTF encoding (so the SDK tools above will work), no?

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
    Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
    Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
    This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now