it looks like the two errors are actually one.
most software will not tell you exactly why a login failed, for security reaons obviously, but in your case it is complaining about libocijdbc11.so in both errors messages.
looks like you are using the wrong client software, like jdbc for solaris on sparc whilst you are on solaris for x86.
I agree with Jan-Marten. It looks like you just need the libraries compiled for your system. I'd suggest downloading the libraries for your platform if you haven't already.
These are included in something called "instant client." It took me hours to find out where I should get the correct files. Maybe this link will be helpful: http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
Hope this helps.