Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception - No Clue As To The Problem

 
Rob Levo
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SQLException: JZ006: Caught IOException: java.io.IOException: JZ0I6: An error oc
cured converting UNICODE to the charset used by the server. Error message: java
.io.CharConversionException: java.io.UnsupportedEncodingException: Cp850
I get the above exception when running a Java app on a Win2000 server with Sybase. It runs perfectly fine when running on my own NT box, but connecting to the same Sybase server.
Anyone have any experience with this error.
Thanks!
Rob
 
Rob Levo
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found the answer!
If anyone has this problem, you need to manually put the i18n.jar in the runtime. For some reason, it is in the JDK, but not the runtime.
I guess it was done to save space, but my app definately needed it.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah - if you notice, it was in the classpath in that .bat file that I shared with you.
 
Rob Levo
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course I noticed, after 4 hours of trying to figure out what was going on, lol.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic