[forge-dev] Open challenge: UTF-8 not supported by the Java Runtime? Says who?
Max Rydahl Andersen
max.andersen at redhat.com
Wed Apr 4 03:10:11 EDT 2012
>From http://stackoverflow.com/questions/177242/the-encoding-utf-8-is-not-supported-by-the-java-runtime
"import java.nio.charset.Charset;
public class TestCharset {
public static void main(String[] args) {
System.out.println(Charset.forName("UTF-8"));
}
}
If this throws an exception, then there is something wrong with your JDK. If it prints "UTF-8" then your JDK is OK, and your application is doing something odd.
If that's the case, run your app under the debugger, and put a breakpoint inhttp://www.java2s.com/Open-Source/Java-Document/XML/xalan/org/apache/xml/serializer/ToStream.java.htm --that's the place this warning is produced, and step to see why Xalan can't find the encoding."
/max
On Apr 3, 2012, at 11:40 PM, Marius Bogoevici wrote:
> I suspect that the class sun.nio.cs.UTF_8 is not visible due to modularization settings.
>
> On 2012-04-03, at 3:54 PM, Lincoln Baxter, III wrote:
>
>> If anyone can figure this out. I'll buy you a beer. I'm stumped!
>>
>> What I know is that the errors are due to accessing the Configuration ~/forge/config.xml and the local project configuration /project/.forge_settings.xml
>>
>> Good luck!
>>
>> --
>> Lincoln Baxter, III
>> http://ocpsoft.org
>> "Simpler is better."
>> _______________________________________________
>> forge-dev mailing list
>> forge-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/forge-dev
>
> _______________________________________________
> forge-dev mailing list
> forge-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-dev
More information about the forge-dev
mailing list