aspose file tools*
The moose likes JDBC and the fly likes error msg UnsatisfiedLinkError t2cGetCharSet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "error msg UnsatisfiedLinkError t2cGetCharSet" Watch "error msg UnsatisfiedLinkError t2cGetCharSet" New topic
Author

error msg UnsatisfiedLinkError t2cGetCharSet

Atlas Cot
Greenhorn

Joined: Sep 12, 2005
Posts: 5
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

Joined: May 26, 2003
Posts: 30752
    
156

Atlas,
Welcome to JavaRanch!

Which Oracle driver do you have in your classpath?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

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

Joined: Nov 09, 2005
Posts: 1
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

Joined: Mar 19, 2009
Posts: 1
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error msg UnsatisfiedLinkError t2cGetCharSet