Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

error msg UnsatisfiedLinkError t2cGetCharSet

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exception in thread "main" java.lang.UnsatisfiedLinkError: t2cGetCharSet
at oracle.jdbc.driver.T2CConnection.t2cGetCharSet(Native Method)
at oracle.jdbc.driver.T2CConnection.getCharSetIds(T2CConnection.java:2873)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:303)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:347)
at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:139)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:79)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:549)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at JdbcTest.main(JdbcTest.java:12)
Java Result: 1


thanks in advance
atlas
[ October 21, 2005: Message edited by: Bear Bibeault ]
 
author & internet detective
Posts: 39986
806
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Atlas,
Welcome to JavaRanch!

Which Oracle driver do you have in your classpath?
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we get some more details? ie what OS are you running, what is the jdbc-url, oracle version, oractle driver JAR, anything else of note?

The only time I can rememeber something similar was years back on Linux using the Oracle type-2 driver when the Oracle client wasn't installed correctly. I'd also check that you are using the most up-to-date oracle driver.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Is the problem resolved? Because I 've the same. It appears when I use MapViewer to get the result of a spatial querry.
I use Oracle 10g with MapViewer 10.1.2.0.2.

Thanks for your response.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is old, but there's a solution on the Oracle forums here:

http://forums.oracle.com/forums/thread.jspa?threadID=312212

There are a couple of possible solutions on that thread, but the one that solved my instance of this "java.lang.UnsatisfiedLinkError: t2cGetCharSet" error was removing duplicate entries in my PATH environment variable that pointed to Oracle bin directories. In my case, I had C:\OraHome_1\bin, which I wanted, but I also had an old OracleXE\bin (this isn't the actual path, I can't remember what it was) entry. After I removed OracleXE\bin from my path, it worked like a charm.
 
expectation is the root of all heartache - shakespeare. tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic