Friday 15 June 2012

android - Eclipse ADT Juno .JTDS is not established and it keeps returning " Charset 0x0904000128/Cp850 is not supported by the JVM." Jtds 1.3.0 -



android - Eclipse ADT Juno .JTDS is not established and it keeps returning " Charset 0x0904000128/Cp850 is not supported by the JVM." Jtds 1.3.0 -

i had tried codes below , keeps returning null in grab exception. may know why , how prepare this?

connection conn = null; seek { //string driver = ""; class.forname("net.sourceforge.jtds.jdbc.driver").newinstance(); string connstring ="jdbc:jtds:sqlserver://hostnamea/databasenameaaa;integratedsecurity=true"; conn = drivermanager.getconnection(connstring, username, password); log.e(tag,"db connection established"); conn.close(); } catch(exception e) { log.e(tag,"error: exception caught! - " + e.getmessage()); e.printstacktrace(); }

thank you.

edit: using jtds-1.3.1.jar everytime comes line conn = drivermanager.getconnection(connstring, username, password);

an error caught in grab , display

error: exception caught! - null

and had replaced jtds-1.3.1.jar jtds-1.3.0.jar file , getting error

"error: exception caught! - charset 0x0904000128/cp850 not supported jvm."

edit2:

i had tested these codes in java (desktop) , works fine it, able connect database , retrieve info server when utilize in async task in android "charset not supported jvm".

how prepare this? had tried re-installing jdk , not work. still same.

"charset 0x0904000128/cp850 not supported jvm."

i found same error message in forum thread here. response was

this problem due jvm installed on server. it's limited language-only bundle (like us/english-only package).

you have alter jvm resolve problem.

followed by

issue solved reinstallaing jvm finish language package

since code page 850 older dos version of latin1 (ref: here) might seek changing source encoding of project windows-1252 or iso-8859-1 , see if current jvm can handle before downloading , installing jvm.

android jdbc jvm jtds

No comments:

Post a Comment