Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error msg UnsatisfiedLinkError t2cGetCharSet

 
Atlas Cot
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 ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Atlas,
Welcome to JavaRanch!

Which Oracle driver do you have in your classpath?
 
David O'Meara
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.
 
Damien Paque
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.
 
ruler Dershmoozelat
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic